| 28 | |
| 29 | |
| 30 | bool ccAddExternalStaticFunction(const String &name, ScriptAPIFunction *scfn, void *dirfn) |
| 31 | { |
| 32 | return simp.Add(name, RuntimeScriptValue().SetStaticFunction(scfn), nullptr) != UINT32_MAX && |
| 33 | (!dirfn || |
| 34 | simp_for_plugin.Add(name, RuntimeScriptValue().SetPluginFunction(dirfn), nullptr) != UINT32_MAX); |
| 35 | } |
| 36 | |
| 37 | bool ccAddExternalObjectFunction(const String &name, ScriptAPIObjectFunction *scfn, void *dirfn) |
| 38 | { |
no test coverage detected