Skip to content

Commit

Permalink
improve deomgraphics summation speed
Browse files Browse the repository at this point in the history
  • Loading branch information
schombert committed Oct 12, 2024
1 parent caf7841 commit f9a1091
Show file tree
Hide file tree
Showing 6 changed files with 1,512 additions and 351 deletions.
13 changes: 13 additions & 0 deletions FifInterfaceGenerator/parsing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,13 @@ relationship_object_def parse_relationship(char const* start, char const* end, c
result.composite_indexes.push_back(
parse_composite_key(extracted.values[0].start, extracted.values[0].end, global_start, err_out));
}
} else if(kstr == "swappable") {
if(extracted.values.size() != 2) {
err_out.add(calculate_line_from_position(global_start, extracted.key.start), 49,
std::string("wrong number of parameters for \"swappable\""));
} else {
// ignore
}
} else if(kstr == "function") {
if(extracted.values.size() != 1) {
err_out.add(calculate_line_from_position(global_start, extracted.key.start), 50,
Expand Down Expand Up @@ -1000,6 +1007,12 @@ relationship_object_def parse_object(char const* start, char const* end, char co
result.properties.push_back(
parse_property_def(extracted.values[0].start, extracted.values[0].end, global_start, err_out));
}
} else if(kstr == "swappable") {
if(extracted.values.size() != 2) {
err_out.add(calculate_line_from_position(global_start, extracted.key.start), 49,
std::string("wrong number of parameters for \"swappable\""));
} else {
}
} else if(kstr == "function") {
if(extracted.values.size() != 1) {
err_out.add(calculate_line_from_position(global_start, extracted.key.start), 63,
Expand Down
2 changes: 1 addition & 1 deletion dependencies/DataContainerGenerator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ message(STATUS "Fetching DataContainer...")
FetchContent_Declare(
DataContainer
GIT_REPOSITORY https://github.com/schombert/DataContainer
GIT_TAG 6193198
GIT_TAG 878fb75
GIT_SHALLOW 1
GIT_PROGRESS TRUE
)
Expand Down
Loading

0 comments on commit f9a1091

Please sign in to comment.