[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Did they mean "." or ":"?
- From: Wesley Smith <wesley.hoke@...>
- Date: Tue, 16 Feb 2010 16:11:47 -0800
> Is there a way from C++ to figure out if a function was called using "." as
> opposed to ":"?
What you should be asking instead is how to tell if the object is the
first argument in C++ since bot.setAngle(bot, angle) is equivalent to
bot:setAngle(angle). If bot is a userdata that you grab the pointer
to, then the check should be trivial.
wes