| 149 | } |
| 150 | |
| 151 | static int |
| 152 | ts_lua_get_process_id(lua_State *L) |
| 153 | { |
| 154 | const char *s; |
| 155 | TSUuid process = TSProcessUuidGet(); |
| 156 | if (process) { |
| 157 | s = TSUuidStringGet(process); |
| 158 | } else { |
| 159 | return luaL_error(L, "not able to get process uuid"); |
| 160 | } |
| 161 | lua_pushstring(L, s); |
| 162 | return 1; |
| 163 | } |
| 164 | |
| 165 | static int |
| 166 | ts_lua_get_now_time(lua_State *L) |
nothing calls this directly
no test coverage detected