Update to latest Arbutils.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -58,15 +58,15 @@ public:
|
||||
|
||||
void RegisterType(const char* type) {
|
||||
int r = _engine->RegisterObjectType(type, 0, asOBJ_REF | asOBJ_NOCOUNT);
|
||||
Assert(r >= 0);
|
||||
Ensure(r >= 0);
|
||||
}
|
||||
void RegisterTypeMethod(const char* type, const char* decl, void*(func)(void*)) {
|
||||
int r = _engine->RegisterObjectMethod(type, decl, asFunctionPtr(func), asCALL_CDECL_OBJFIRST);
|
||||
Assert(r >= 0);
|
||||
Ensure(r >= 0);
|
||||
}
|
||||
void RegisterGlobalMethod(const char*, void*(func)(void*)) {
|
||||
auto r = _engine->RegisterGlobalFunction("decl", asFunctionPtr(func), asCALL_CDECL);
|
||||
Assert(r >= 0);
|
||||
Ensure(r >= 0);
|
||||
}
|
||||
|
||||
asITypeInfo* GetBaseType(const ArbUt::StringView& name) {
|
||||
|
||||
Reference in New Issue
Block a user