MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / registerBinding

Function registerBinding

Source/Falcor/Utils/Scripting/ScriptBindings.cpp:106–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104} // namespace
105
106void registerBinding(RegisterBindingFunc f)
107{
108 if (sModule)
109 {
110 try
111 {
112 f(sModule);
113 }
114 catch (const std::exception& e)
115 {
116 PyErr_SetString(PyExc_ImportError, e.what());
117 reportErrorAndContinue(e.what());
118 return;
119 }
120 }
121 else
122 {
123 registerDeferredBinding(getUniqueDeferredBindingName(), f);
124 }
125}
126
127void registerDeferredBinding(const std::string& name, RegisterBindingFunc f)
128{

Callers 15

registerPluginFunction · 0.85
registerPluginFunction · 0.85
registerPluginFunction · 0.85
registerPluginFunction · 0.85
registerPluginFunction · 0.85
registerPluginFunction · 0.85
registerPluginFunction · 0.85
registerPluginFunction · 0.85
registerPluginFunction · 0.85
registerPluginFunction · 0.85
registerPluginFunction · 0.85
registerPluginFunction · 0.85

Calls 5

reportErrorAndContinueFunction · 0.85
registerDeferredBindingFunction · 0.85
whatMethod · 0.80
fFunction · 0.50

Tested by 1

registerPluginFunction · 0.68