MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / get_new_int

Function get_new_int

src/test_module.cpp:131–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129static int global_i = 1;
130
131int *get_new_int()
132{
133 return &global_i;
134}
135
136// MSVC doesn't like that we are using C++ return types from our C declared module
137// but this is the best way to do it for cross platform compatibility

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected