#include "stdint.h"
#include "ship/Api.h"
#include <memory>
Go to the source code of this file.
|
| namespace | Ship |
| | Core namespace for the libultraship engine framework.
|
| |
◆ ScriptGetFunction()
| API_EXPORT void * ScriptGetFunction |
( |
const char * |
module, |
|
|
const char * |
function |
|
) |
| |
Looks up and returns a function pointer exported from the scripting runtime.
The scripting bridge exposes compiled script functions to native C/C++ code via this single entry point. The caller is responsible for casting the returned pointer to the correct function signature before calling it.
- Parameters
-
| module | Name of the scripting module that exports the function. |
| function | Name of the function to look up within module. |
- Returns
- Opaque function pointer, or nullptr if the module or function is not found.
◆ ScriptGetLoader()
◆ ScriptSetLoader()