MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / CheckEid

Function CheckEid

modules/dasUnitTest/test_handles.cpp:214–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212uint2 get_screen_dimensions() {return uint2{1280, 720};}
213
214uint64_t CheckEid ( TestObjectFoo & foo, char * const name, Context * context, LineInfoArg * at ) {
215 if (!name) context->throw_error_at(at, "invalid id");
216 return hash_function(*context, name) + foo.fooData;
217}
218
219uint64_t CheckEidHint ( TestObjectFoo & foo, char * const name, uint64_t hashHint, Context * context, LineInfoArg * at ) {
220 if (!name) context->throw_error_at(at, "invalid id");

Callers

nothing calls this directly

Calls 2

hash_functionFunction · 0.85
throw_error_atMethod · 0.80

Tested by

no test coverage detected