Yes, tolua basically just ignores const specifiers so it treats it as a normal reference which it then treats as an additional return value. I don't think these particular functions are worth worrying about, they're called very infrequently.