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

Function testBindEnumFunction

modules/dasUnitTest/test_enum.cpp:33–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31DAS_BASE_BIND_ENUM_98(SomeEnum_16, SomeEnum_16, SomeEnum_16_zero, SomeEnum_16_one, SomeEnum_16_two)
32
33bool testBindEnumFunction ( Context * context, LineInfoArg * at ) {
34 if ( !context->thisProgram ) {
35 context->throw_error_at(at, "missing options rtti");
36 }
37 SimFunction * fn = context->findFunction("testBindEnum");
38 if ( !fn ) {
39 context->throw_error_at(at, "missing testBindEnum(arg:SomeEnum):void function");
40 }
41 return verifyCall<void,SomeEnum>(fn->debugInfo, context->thisProgram->library);
42}
43
44
45void Module_UnitTest::addEnumTest(ModuleLibrary &lib)

Callers

nothing calls this directly

Calls 2

throw_error_atMethod · 0.80
findFunctionMethod · 0.45

Tested by

no test coverage detected