diff options
author | 2007-08-16 14:02:17 -0400 | |
---|---|---|
committer | 2007-08-16 14:02:17 -0400 | |
commit | 9a1661bfbb3720221363981a0f511ca8888dde3b (patch) | |
tree | 98a4f7dee7e5b5a505ee655ad6f338edde05f1d7 /src/textadept.c | |
parent | 0b89c203fd9b39093810bbd567e3a022b6cdbc43 (diff) | |
download | textadept-9a1661bfbb3720221363981a0f511ca8888dde3b.tar.gz textadept-9a1661bfbb3720221363981a0f511ca8888dde3b.zip |
If l_ta_get for "views" or "buffers" fails, throw an error; src/lua_interface.c
Since l_check{view|docpointer} throw errors, the unprotected C functions that
call them will cause a Lua panic if either textadept.views or textadept.buffers
does not exist and Textadept will exit. This makes sense since the two tables
are integral to the application. Therefore instead of checking if either table
exists in those unprotected C functions and handling a failed check safely,
throw an error and exit Textadept anyway because sooner or later one will be
thrown from l_check{view|docpointer}.
Diffstat (limited to 'src/textadept.c')
0 files changed, 0 insertions, 0 deletions