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

Function CheckEidHint

modules/dasUnitTest/test_handles.cpp:219–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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");
221 uint64_t hv = hash_function(*context, name) + foo.fooData;
222 if ( hv != hashHint ) context->throw_error_at(at, "invalid hash value");
223 return hashHint;
224}
225
226struct CheckEidFunctionAnnotation : TransformFunctionAnnotation {
227 CheckEidFunctionAnnotation() : TransformFunctionAnnotation("check_eid") { }

Callers

nothing calls this directly

Calls 2

hash_functionFunction · 0.85
throw_error_atMethod · 0.80

Tested by

no test coverage detected