Debian Codegraph @

source/unix/odesrc/OPCODE/Opcode.cpp

raw
1 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2 /*
3 * OPCODE - Optimized Collision Detection
4 * Copyright (C) 2001 Pierre Terdiman
5 * Homepage: http://www.codercorner.com/Opcode.htm
6 */
7 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
8
9 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
10 /**
11 * Main file for Opcode.dll.
12 * \file Opcode.cpp
13 * \author Pierre Terdiman
14 * \date March, 20, 2001
15 */
16 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
17
18 /*
19 Finding a good name is difficult!
20 Here's the draft for this lib.... Spooky, uh?
21
22 VOID? Very Optimized Interference Detection
23 ZOID? Zappy's Optimized Interference Detection
24 CID? Custom/Clever Interference Detection
25 AID / ACID! Accurate Interference Detection
26 QUID? Quick Interference Detection
27 RIDE? Realtime Interference DEtection
28 WIDE? Wicked Interference DEtection (....)
29 GUID!
30 KID ! k-dop interference detection :)
31 OPCODE! OPtimized COllision DEtection
32 */
33
34 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
35 // Precompiled Header
36 #include "Stdafx.h"
37
38 using namespace Opcode;
39
40
41 static OPCODE_AbortHandler g_fnAbortHandler = NULL;
42
43
44 bool Opcode::InitOpcode(OPCODE_AbortHandler fnAbortHandler/*=NULL*/)
45 {
46 //Log("// Initializing OPCODE\n\n");
47 // LogAPIInfo();
48
49 g_fnAbortHandler = fnAbortHandler;
50 return true;
51 }
52
53 bool Opcode::CloseOpcode()
54 {
55 //Log("// Closing OPCODE\n\n");
56
57 return true;
58 }
59
60
61 #ifdef ICE_MAIN
62
63 void ModuleAttach(HINSTANCE hinstance)
64 {
65 }
66
67 void ModuleDetach()
68 {
69 }
70
71 #endif
72
73 /*extern */
74 void OPCODE_NORETURN IceAbort()
75 {
76 if (g_fnAbortHandler != NULL)
77 {
78 g_fnAbortHandler();
79 }
80
81 abort();
82 }