MCPcopy 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

mainFunction · 0.80

Calls 3

funFunction · 0.85
set_stateMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected