mirror of
https://github.com/cc65/cc65.git
synced 2025-01-11 11:30:13 +00:00
Documented the new .IDENT function
git-svn-id: svn://svn.cc65.org/cc65/trunk@3507 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
76d94bc8d9
commit
22e204d1c4
@ -1199,6 +1199,26 @@ either a string or an expression.
|
||||
See: <tt><ref id=".LOWORD" name=".LOWORD"></tt>
|
||||
|
||||
|
||||
<sect1><tt>.IDENT</tt><label id=".IDENT"><p>
|
||||
|
||||
The function expects a string as its argument, and converts this argument
|
||||
into an identifier. If the string starts with the current <tt/<ref
|
||||
id=".LOCALCHAR" name=".LOCALCHAR">/, it will be converted into a cheap local
|
||||
identifier, otherwise it will be converted into a normal identifier.
|
||||
|
||||
Example:
|
||||
|
||||
<tscreen><verb>
|
||||
.macro makelabel arg1, arg2
|
||||
.ident (.concat (arg1, arg2)):
|
||||
.endmacro
|
||||
|
||||
makelabel "foo", "bar"
|
||||
|
||||
.word foobar ; Valid label
|
||||
</verb></tscreen>
|
||||
|
||||
|
||||
<sect1><tt>.LEFT</tt><label id=".LEFT"><p>
|
||||
|
||||
Builtin function. Extracts the left part of a given token list.
|
||||
|
Loading…
x
Reference in New Issue
Block a user