[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Add hooks for print functions like the one for allocation.
- From: Philipp Janda <siffiejoe@...>
- Date: Sat, 02 Nov 2013 17:12:38 +0100
Am 02.11.2013 16:34 schröbte Paul Chavent:
- redefine print (_G.print = myprint), i like this one and i'm
currently trying to understand how to pass userdata (closures seems to
be the solution, but i hardly understand how to use it from c)
You can take a look at cprint, which is a replacement for the default
`print` function, and uses a userdata upvalue.
Thank you for your help and suggestions.