dead code elimination
This commit is contained in:
parent
6d89c7b1c1
commit
03e5209195
6 changed files with 1293 additions and 1282 deletions
|
|
@ -17,8 +17,11 @@ when defined(windows):
|
|||
{.push, callconv: stdcall.}
|
||||
else:
|
||||
{.push, callconv: cdecl.}
|
||||
|
||||
import opengl
|
||||
|
||||
{.deadCodeElim: on.}
|
||||
|
||||
type
|
||||
GLcharARB* = Char
|
||||
TGLcharARB* = GLcharARB
|
||||
|
|
|
|||
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
import opengl
|
||||
|
||||
{.deadCodeElim: on.}
|
||||
|
||||
when defined(windows):
|
||||
{.push, callconv: stdcall.}
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -17,6 +17,8 @@
|
|||
|
||||
import opengl
|
||||
|
||||
{.deadCodeElim: on.}
|
||||
|
||||
when defined(windows):
|
||||
const
|
||||
dllname = "glut32.dll"
|
||||
|
|
|
|||
|
|
@ -25,6 +25,8 @@
|
|||
|
||||
import X, XLib, XUtil, opengl
|
||||
|
||||
{.deadCodeElim: on.}
|
||||
|
||||
when defined(windows):
|
||||
const
|
||||
dllname = "GL.dll"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
import opengl, windows
|
||||
|
||||
{.deadCodeElim: on.}
|
||||
|
||||
proc wglGetExtensionsStringARB*(hdc: HDC): cstring{.dynlib: dllname,
|
||||
importc: "wglGetExtensionsStringARB".}
|
||||
const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue