MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / cf_npp_constname

Function cf_npp_constname

src/LuaExtension.cpp:162–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
178void stackdump(lua_State* l)
179{

Callers

nothing calls this directly

Calls 2

raise_errorFunction · 0.70
GetConstantNameMethod · 0.45

Tested by

no test coverage detected