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

Function myexit

src/main.cpp:225–227  ·  view source on GitHub ↗

We have to wrap exit with our own because Clang has a hard time with function pointers to functions with special attributes (system exit being marked NORETURN)

Source from the content-addressed store, hash-verified

223// We have to wrap exit with our own because Clang has a hard time with
224// function pointers to functions with special attributes (system exit being marked NORETURN)
225void myexit(int return_val) {
226 exit(return_val);
227}
228
229void interactive(chaiscript::ChaiScript_Basic& chai)
230{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected