| 73 | } |
| 74 | |
| 75 | static void |
| 76 | ts_lua_inject_hook_variables(lua_State *L) |
| 77 | { |
| 78 | size_t i; |
| 79 | |
| 80 | for (i = 0; i < sizeof(ts_lua_hook_id_string) / sizeof(char *); i++) { |
| 81 | lua_pushinteger(L, (lua_Integer)i); |
| 82 | lua_setglobal(L, ts_lua_hook_id_string[i]); |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | static int |
| 87 | ts_lua_add_hook(lua_State *L) |
no outgoing calls
no test coverage detected