[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Windows console
- From: Luc Van den Borre <lucv@...>
- Date: Tue, 23 Jun 1998 12:11:13 +0100
I register 'print_stack' as one of my own extension functions, and then do a luaL_check_string(1) to get the error from Lua,
and print that out using a messagebox. This way you don't need to change the lua source code...
On 23 June 1998 12:04, Luiz Henrique de Figueiredo [SMTP:lhf@tecgraf.puc-rio.br] wrote:
| >From Nick.Trout@psygnosis.co.uk Tue Jun 23 05:54:04 1998
| >
| >Has anyone written a nice Lua Windows console (as opposed to having to use
| >a DOS prompt) which they would be willing to post on here or point me to a
| >URL?
|
| That would be a good thing to have. If anyone has it, please let me know and
| I'll add a link to it the Lua site.
|
| On the other hand, this should be provided by any compiler that claims to
| be ANSI. Otherwise, how would it support stdio.h?
| What do the current compilers do with stderr in Windows??
|
| On the other hand, I've seen someone use the code below for putting
| dialog boxes at error conditions.
|
| #ifdef WIN32
| MessageBox(NULL,
| message, "Application Error",
| MB_ICONERROR | MB_OK);
| #else /* has shell output */
| fputs(message, stderr);
| #endif /* WIN32 */
|
| --lhf