Commit 1780d58
CLEANUP: hlua: use hlua_pusherror() where relevant
In hlua_map_new(), when error occurs we use a combination of luaL_where,
lua_pushfstring and lua_concat to build the error string before calling
lua_error().
It turns out that we already have the hlua_pusherror() macro which is
exactly made for that purpose so let's use it.
It could be backported to all stable versions to ease code maintenance.
(cherry picked from commit 6e48499)
Signed-off-by: Amaury Denoyelle <[email protected]>1 parent 30fb3ca commit 1780d58
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2369 | 2369 | | |
2370 | 2370 | | |
2371 | 2371 | | |
2372 | | - | |
2373 | | - | |
2374 | | - | |
| 2372 | + | |
2375 | 2373 | | |
2376 | 2374 | | |
2377 | 2375 | | |
| |||
0 commit comments