Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ChaiScript/ChaiScript
/ ResetState
Method
ResetState
samples/memory_leak_test.cpp:37–41 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
35
36
public:
37
void ResetState()
38
{
39
chai.set_state(backupState);
40
chai.add(chaiscript::fun(&function),
"Whatever()"
);
41
}
42
43
void RunFile(std::string sFile)
44
{
Callers
1
main
Function · 0.80
Calls
3
fun
Function · 0.85
set_state
Method · 0.45
add
Method · 0.45
Tested by
no test coverage detected