?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1.     ; the __FILE__ and __LINE__ values are raw without quotes, so they are currently
  2.     ; difficult to use with sjasmplus, the Lua script can manipulate them well
  3.     ; but sjasmplus itself would need maybe some string operators... or even more?
  4.     OUTPUT "predefined_base_file.bin"
  5.  
  6.     DB 0, 1, 2, 3, 255, 254, 253, 252, 10, 10, 10   ; make sure git doesn't treat this as text file
  7.     DB "Main file before INCLUDE:\n"
  8.     LUA ALLPASS
  9.         _pc("DB \"base: " .. sj.get_define("__BASE_FILE__") .. "\\n\"")
  10.         _pc("DB \"file: " .. sj.get_define("__FILE__") .. "\\n\"")
  11.         _pc("DB \"ENDLUA line: " .. sj.get_define("__LINE__") .. "\\n\"")
  12.     ENDLUA
  13.  
  14.     INCLUDE "predefined_base_file.i.asm"
  15.  
  16.     DB "Main file after INCLUDE:\n"
  17.     LUA ALLPASS
  18.         _pc("DB \"base: " .. sj.get_define("__BASE_FILE__") .. "\\n\"")
  19.         _pc("DB \"file: " .. sj.get_define("__FILE__") .. "\\n\"")
  20.         _pc("DB \"ENDLUA line: " .. sj.get_define("__LINE__") .. "\\n\"")
  21.     ENDLUA
  22.