?login_element?

Subversion Repositories NedoOS

Rev

Rev 539 | Blame | Compare with Previous | Last modification | View Log | Download

lua_emit_warning_sup.asm(9): warning[luamc]: When lua script emits machine code bytes, use "ALLPASS" modifier
lua_emit_warning_sup.asm(26): warning: [LUA] but lua warning should work: 11
lua_emit_warning_sup.asm(48): warning: [LUA] but lua warning should work: 21
lua_emit_warning_sup.asm(13): warning[luamc]: When lua script emits machine code bytes, use "ALLPASS" modifier
lua_emit_warning_sup.asm(31): warning: [LUA] but lua warning should work: 12
lua_emit_warning_sup.asm(53): warning: [LUA] but lua warning should work: 22
# file opened: lua_emit_warning_sup.asm
 1    0000              ; warnings about emitting bytes with wrong LUA block modifier (should be "allpass")
 2    0000              ; this test does test only the suppression mechanics
 3    0000              ; In this special case of lua-byte-emit warning, the user can put the suppression mark
 4    0000              ; both at the beginning and at the end of the lua->endlua block, so testing both here:
 5    0000
 6    0000              ;; verify the warnings still work (just quick test)
 7    0000                  lua pass1
 8    0000 ~                    sj.add_byte(1)
 9    0000                  endlua
10    0000
11    0000                  lua pass2
12    0000 ~                    sj.add_byte(2)
13    0000                  endlua
14    0000
15    0000                  lua pass3
16    0000 ~                    sj.add_byte(3)
lua_emit_warning_sup.asm(17): warning[luamc]: When lua script emits machine code bytes, use "ALLPASS" modifier
17    0000 03               endlua
18    0001
19    0001                  lua
20    0001 ~                    sj.add_byte(4)
lua_emit_warning_sup.asm(21): warning[luamc]: When lua script emits machine code bytes, use "ALLPASS" modifier
21    0001 04               endlua
22    0002
23    0002              ;; test suppression at beginning of block
24    0002
25    0002                  lua pass1   ; luamc-ok - warning should be suppressed (even here at beginning of block)
26    0002 ~                    sj.warning("but lua warning should work", 11)
27    0002 ~                    sj.add_byte(11)
28    0002                  endlua
29    0002
30    0002                  lua pass2   ; luamc-ok - warning should be suppressed (even here at beginning of block)
31    0002 ~                    sj.warning("but lua warning should work", 12)
32    0002 ~                    sj.add_byte(12)
33    0002                  endlua
34    0002
35    0002                  lua pass3   ; luamc-ok - warning should be suppressed (even here at beginning of block)
36    0002 ~                    sj.warning("but lua warning should work", 13)
37    0002 ~                    sj.add_byte(13)
lua_emit_warning_sup.asm(36): warning: [LUA] but lua warning should work: 13
38    0002 0D               endlua
39    0003
40    0003                  lua         ; luamc-ok - warning should be suppressed (even here at beginning of block)
41    0003 ~                    sj.warning("but lua warning should work", 14)
42    0003 ~                    sj.add_byte(14)
lua_emit_warning_sup.asm(41): warning: [LUA] but lua warning should work: 14
43    0003 0E               endlua
44    0004
45    0004              ;; test suppression at end of block
46    0004
47    0004                  lua pass1
48    0004 ~                    sj.warning("but lua warning should work", 21)
49    0004 ~                    sj.add_byte(21)
50    0004                  endlua      ; luamc-ok
51    0004
52    0004                  lua pass2
53    0004 ~                    sj.warning("but lua warning should work", 22)
54    0004 ~                    sj.add_byte(22)
55    0004                  endlua      ; luamc-ok
56    0004
57    0004                  lua pass3
58    0004 ~                    sj.warning("but lua warning should work", 23)
59    0004 ~                    sj.add_byte(23)
lua_emit_warning_sup.asm(58): warning: [LUA] but lua warning should work: 23
60    0004 17               endlua      ; luamc-ok
61    0005
62    0005                  lua
63    0005 ~                    sj.warning("but lua warning should work", 24)
64    0005 ~                    sj.add_byte(24)
lua_emit_warning_sup.asm(63): warning: [LUA] but lua warning should work: 24
65    0005 18               endlua      ; luamc-ok
66    0006
# file closed: lua_emit_warning_sup.asm

Value    Label
------ - -----------------------------------------------------------