send a text to the connected profiler * Send a text to the connected profiler * * @name profiler.log_text * @param text [type:string] the string to send to the connected profiler * * @examples * ```lua * profiler.log_text("Event: " .. name) * ``` */
| 706 | * ``` |
| 707 | */ |
| 708 | static int ProfilerLogText(lua_State* L) |
| 709 | { |
| 710 | DM_LUA_STACK_CHECK(L, 0); |
| 711 | |
| 712 | const char* text = luaL_checkstring(L, 1); |
| 713 | if (!text) |
| 714 | { |
| 715 | return DM_LUA_ERROR("Expected string as second argument"); |
| 716 | } |
| 717 | |
| 718 | ProfileLogText("%s", text); |
| 719 | return 0; |
| 720 | } |
| 721 | |
| 722 | /*# logs the current frame to the console |
| 723 | * logs the current frame to the console |
nothing calls this directly
no test coverage detected