diff options
| author | ruki <[email protected]> | 2020-04-22 22:45:10 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-04-22 10:31:03 +0800 |
| commit | 8567065df7d23e7c51880d1e36a9895a13cd4b89 (patch) | |
| tree | fdb54ac92ca1d87afbe7edaa39b0f24ccf7cca8f /core/src/xmake/engine.h | |
| parent | 762a7bc9386a0acaede7d54453611999a589c776 (diff) | |
improve engine api
Diffstat (limited to 'core/src/xmake/engine.h')
| -rw-r--r-- | core/src/xmake/engine.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/src/xmake/engine.h b/core/src/xmake/engine.h index cd02516f7..d4e117e51 100644 --- a/core/src/xmake/engine.h +++ b/core/src/xmake/engine.h @@ -38,6 +38,9 @@ __tb_extern_c_enter__ /// the xmake engine type typedef struct {tb_int_t dummy;} const* xm_engine_ref_t; +/// the lua initializer callback type +typedef tb_bool_t (*xm_engine_lua_initializer_cb_t)(lua_State* lua); + /* ////////////////////////////////////////////////////////////////////////////////////// * interfaces */ @@ -46,7 +49,7 @@ typedef struct {tb_int_t dummy;} const* xm_engine_ref_t; * * @return the engine */ -xm_engine_ref_t xm_engine_init(tb_noarg_t); +xm_engine_ref_t xm_engine_init(xm_engine_lua_initializer_cb_t lua_initalizer); /*! exit the engine * |
