summaryrefslogtreecommitdiff
path: root/tnslc/simple.tnsl
blob: 1541df2d00ccc7dc3b4413ca1ffbbdc7e3b0fe01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
:include "c_wrap.tnsl"
:include "logging.tnsl"

{}uint8 eee = "eee\0"

/; main (int argc, ~~uint argv) [int]
    # On windows, the first two arguments are passed in RCX and RDX, so we need to
    # update their positions here or else tnsl will have garbage values in r8 and r9
    asm "mov r8, rcx"
    asm "mov r9, rdx"

    log_err(~eee{0})
    log_info(~eee{0})
    log_debug(~eee{0})
    
    return 0
;/