-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|40|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Snippet Home -> Misc


 
Cower
Created : 23 February 2013
Edited : 23 February 2013
Language : Monkey

Lua Glue Function Template

A template for pushing glue functions for arbitrary functions onto Lua's stack.

This snippet is basically just a header with some templates that allow you to generate a glue function for any arbitrary function and push it onto a Lua stack. So, you just call lb_push_function with your function and it'll take care of the rest. Or the compiler will.



And for a quick example (sanity of code below not guaranteed):

 

Comments