mirror of
https://github.com/TTimo/doom3.gpl.git
synced 2026-03-20 08:59:42 +01:00
hello world
This commit is contained in:
24
neo/sys/linux/glimp_local.h.m4
Normal file
24
neo/sys/linux/glimp_local.h.m4
Normal file
@@ -0,0 +1,24 @@
|
||||
dnl =====================================================
|
||||
dnl utils
|
||||
dnl =====================================================
|
||||
|
||||
define(`forloop',
|
||||
`pushdef(`$1', `$2')_forloop(`$1', `$2', `$3', `$4')popdef(`$1')')
|
||||
define(`_forloop',
|
||||
`$4`'ifelse($1, `$3', ,
|
||||
`define(`$1', incr($1))_forloop(`$1', `$2', `$3', `$4')')')
|
||||
|
||||
dnl =====================================================
|
||||
dnl the gl wgl glX definitions
|
||||
dnl =====================================================
|
||||
include(../gllog/gl_def.m4)
|
||||
|
||||
dnl =====================================================
|
||||
dnl dll funcs declare
|
||||
dnl =====================================================
|
||||
|
||||
define(`declare_funcptr', `extern `$1' ( * dll`$2' )(`$3');')
|
||||
forloop(`i', gl_start, gl_end, `declare_funcptr(indir(`f'i`_ret'), indir(`f'i`_name'), indir(`f'i`_params'))
|
||||
')
|
||||
forloop(`i', glX_start, glX_end, `declare_funcptr(indir(`f'i`_ret'), indir(`f'i`_name'), indir(`f'i`_params'))
|
||||
')
|
||||
Reference in New Issue
Block a user