libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
scriptingbridge.h
Go to the documentation of this file.
1#pragma once
2
3#ifdef ENABLE_SCRIPTING
4
5#include "stdint.h"
6#include "ship/Api.h"
7
8#ifdef __cplusplus
9#include <memory>
10namespace Ship {
11class ScriptLoader;
12}
13void ScriptSetLoader(std::shared_ptr<Ship::ScriptLoader> scriptLoader);
14std::shared_ptr<Ship::ScriptLoader> ScriptGetLoader();
15extern "C" {
16#endif
17
29API_EXPORT void* ScriptGetFunction(const char* module, const char* function);
30
31#ifdef __cplusplus
32}
33#endif
34
35#endif // ENABLE_SCRIPTING
API export/import macros for cross-platform shared library symbol visibility.
#define API_EXPORT
Marks a symbol for export from (or import into) a shared library.
Definition Api.h:32
Core namespace for the libultraship engine framework.
Definition gfx_direct3d_common.h:14
std::shared_ptr< Ship::ScriptLoader > ScriptGetLoader()
API_EXPORT void * ScriptGetFunction(const char *module, const char *function)
Looks up and returns a function pointer exported from the scripting runtime.
void ScriptSetLoader(std::shared_ptr< Ship::ScriptLoader > scriptLoader)