raise NotImplementedError
def exit_impl(self):
- print ' ExitProcess(0);'
+ print ' Log::Abort();'
def fail_impl(self):
if self.fail is not None:
"""dl"""
+
from base import *
+
class DllFunction(Function):
def __init__(self, type, name, args, call = '', fail = None):
Function.__init__(self, type, name, args, call=call, fail=fail)
- def exit_impl(self):
- print ' exit(0);'
-
def get_true_pointer(self):
ptype = self.pointer_type()
pvalue = self.pointer_value()
def __init__(self, type, name, args, call = '', fail = None):
Function.__init__(self, type, name, args, call=call, fail=fail)
- def exit_impl(self):
- print ' exit(0);'
-
def get_true_pointer(self):
ptype = self.pointer_type()
pvalue = self.pointer_value()
WriteUInt((size_t)addr);
}
+void Abort(void) {
+ Close();
+ OS::Abort();
+}
+
} /* namespace Log */
void LiteralNamedConstant(const char *name, long long value);
void LiteralNull(void);
void LiteralOpaque(const void *ptr);
+
+ void Abort(void);
}
#endif /* _LOG_HPP_ */
bool GetProcessName(char *str, size_t size);
+void Abort(void);
+
} /* namespace OS */
#endif /* _OS_HPP_ */
#include <string.h>
#include <unistd.h>
+#include <stdlib.h>
#include <pthread.h>
#include "os.hpp"
}
+void
+Abort(void)
+{
+ exit(0);
+}
+
+
} /* namespace OS */
}
+void
+Abort(void)
+{
+ ExitProcess(0);
+}
+
+
} /* namespace OS */