Error messages from C
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Error messages from C
- From: Daniel Silverstone <dsilvers@...>
- Date: Tue, 2 Jan 2001 20:29:28 +0000
I recently wanted to create an error message in C.
Rather than mess about in C concatenating bits of strings, I decided
to push the strings onto the stack, lua_concat() them, and then
call lua_error(L, lua_tostring(L, -1)).
Is that:
(a) Safe?
(b) The most efficient way?
Many thanks in advance.
Daniel