Skip to content

Commit

Permalink
refac: remove cpp.hint
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffstadt committed Oct 30, 2022
1 parent 6916323 commit b68f962
Show file tree
Hide file tree
Showing 40 changed files with 340 additions and 373 deletions.
13 changes: 0 additions & 13 deletions src/cpp.hint

This file was deleted.

14 changes: 7 additions & 7 deletions src/dearpygui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const std::map<std::string, mvPythonParser>&
GetModuleParsers()
{

mv_local_persist auto parsers = std::map<std::string, mvPythonParser>();
static auto parsers = std::map<std::string, mvPythonParser>();

if (parsers.empty())
{
Expand All @@ -44,8 +44,8 @@ GetModuleParsers()
const std::vector<std::pair<std::string, long>>&
GetModuleConstants()
{
mv_local_persist bool First_Run = true;
mv_local_persist std::vector<std::pair<std::string, long>> ModuleConstants;
static bool First_Run = true;
static std::vector<std::pair<std::string, long>> ModuleConstants;

if (First_Run)
{
Expand Down Expand Up @@ -405,7 +405,7 @@ GetModuleConstants()
return ModuleConstants;
}

mv_internal void
static void
PreFetchItemInfo(mvUUID* out_name, mvUUID* out_parent, mvUUID* out_before, std::string* out_alias, PyObject* args, PyObject* kwargs)
{

Expand Down Expand Up @@ -441,7 +441,7 @@ PreFetchItemInfo(mvUUID* out_name, mvUUID* out_parent, mvUUID* out_before, std::
}
}

mv_internal PyObject*
static PyObject*
common_constructor(const char* command, mvAppItemType type, PyObject* self, PyObject* args, PyObject* kwargs)
{

Expand Down Expand Up @@ -512,7 +512,7 @@ PyMODINIT_FUNC
PyInit__dearpygui(void)
{

mv_local_persist std::vector<PyMethodDef> methods;
static std::vector<PyMethodDef> methods;
methods.clear();

#define X(el) methods.push_back({GetEntityCommand(mvAppItemType::el), (PyCFunction)el##_command, METH_VARARGS | METH_KEYWORDS, GetParsers()[GetEntityCommand(mvAppItemType::el)].documentation.c_str()});
Expand Down Expand Up @@ -692,7 +692,7 @@ PyInit__dearpygui(void)

methods.push_back({ NULL, NULL, 0, NULL });

mv_local_persist PyModuleDef dearpyguiModule = {
static PyModuleDef dearpyguiModule = {
PyModuleDef_HEAD_INIT, "_dearpygui", NULL, -1, methods.data(),
NULL, NULL, NULL, NULL
};
Expand Down
Loading

0 comments on commit b68f962

Please sign in to comment.