1
0
mirror of https://github.com/cc65/cc65.git synced 2024-09-30 08:57:49 +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:
cuz 2005-05-09 19:06:26 +00:00
parent 76d94bc8d9
commit 22e204d1c4

View File

@ -1199,6 +1199,26 @@ either a string or an expression.
See: <tt><ref id=".LOWORD" name=".LOWORD"></tt> 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> <sect1><tt>.LEFT</tt><label id=".LEFT"><p>
Builtin function. Extracts the left part of a given token list. Builtin function. Extracts the left part of a given token list.