Changeset 165 for trunk/src/lib/lua.cc


Ignore:
Timestamp:
07/16/13 23:40:03 (12 years ago)
Author:
epyon
Message:
  • lua bindings - version choice made explicit, lua jit a toggle, not a version
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/lua.cc

    r164 r165  
    2727#       define NV_LUA_FUN_51( rtype, fname, fparams )
    2828#       define NV_LUA_FUN_52 NV_LUA_FUN
     29#elif NV_LUA_VERSION == NV_LUA_51
     30#       define NV_LUA_FUN_51 NV_LUA_FUN
     31#       define NV_LUA_FUN_52( rtype, fname, fparams )
    2932#else
    30 #       define NV_LUA_FUN_51 NV_LUA_FUN
    31 #       define NV_LUA_FUN_52( rtype, fname, fparams )
     33#       define NV_LUA_FUN_51( rtype, fname, fparams )
     34#       define NV_LUA_FUN_52( rtype, fname, fparams ) 
    3235#endif
    3336
     
    4851#               define NV_LUA_FUN_51( rtype, fname, fparams )
    4952#               define NV_LUA_FUN_52 NV_LUA_FUN
     53#       elif NV_LUA_VERSION == NV_LUA_51
     54#               define NV_LUA_FUN_51 NV_LUA_FUN
     55#               define NV_LUA_FUN_52( rtype, fname, fparams )
    5056#       else
    51 #               define NV_LUA_FUN_51 NV_LUA_FUN
     57#               define NV_LUA_FUN_51( rtype, fname, fparams )
    5258#               define NV_LUA_FUN_52( rtype, fname, fparams )
    5359#       endif
    5460
    55 #include <nv/lib/detail/lua_functions.inc>
     61#       include <nv/lib/detail/lua_functions.inc>
    5662
    57 #undef NV_LUA_FUN
    58 #undef NV_LUA_FUN_51
    59 #undef NV_LUA_FUN_52
     63#       undef NV_LUA_FUN
     64#       undef NV_LUA_FUN_51
     65#       undef NV_LUA_FUN_52
    6066        return true;
    6167}
Note: See TracChangeset for help on using the changeset viewer.