# Enable math constants defines
add_definitions (-D_USE_MATH_DEFINES)
+ # No min/max macros
+ add_definitions (-DNOMINMAX)
+
# Adjust warnings
add_definitions (-D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS)
add_definitions (-D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS)
set (glws glws_glx.cpp)
endif (WIN32)
- add_library (trace trace_model.cpp trace_parser.cpp ${os})
+ add_library (trace trace_model.cpp trace_parser.cpp trace_write.cpp ${os})
-add_executable (dump dump.cpp)
-target_link_libraries (dump trace)
+add_executable (tracedump tracedump.cpp)
+target_link_libraries (tracedump trace)
add_custom_command (
OUTPUT glretrace_gl.cpp
}
}
- void Close(void) {
- _Close();
- }
-
static unsigned call_no = 0;
inline bool lookup(std::vector<bool> &map, size_t index) {
static std::vector<bool> bitmasks;
+ void Close(void) {
+ _Close();
+ call_no = 0;
+ functions = std::vector<bool>();
+ structs = std::vector<bool>();
+ enums = std::vector<bool>();
+ bitmasks = std::vector<bool>();
+ }
+
unsigned BeginEnter(const FunctionSig &function) {
OS::AcquireMutex();
Open();
} /* namespace Trace */
-#ifdef WIN32
+#ifdef _WIN32
#if 0
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {