| 160 | } |
| 161 | |
| 162 | [[maybe_unused]] static int cf_npp_constname(lua_State *L) { |
| 163 | char constName[100] = ""; |
| 164 | const char *hint = nullptr; |
| 165 | int message = (int)luaL_checkinteger(L, 1); |
| 166 | |
| 167 | hint = luaL_optstring(L, 2, nullptr); |
| 168 | |
| 169 | if (ifacemixer.GetConstantName(message, constName, 100, hint) > 0) { |
| 170 | lua_pushstring(L, constName); |
| 171 | return 1; |
| 172 | } else { |
| 173 | raise_error(L, "Argument does not match any Scintilla / Notepad++ constant"); |
| 174 | return 0; |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | void stackdump(lua_State* l) |
| 179 | { |
nothing calls this directly
no test coverage detected