diff options
author | Haru <haru@dotalux.com> | 2018-08-26 20:53:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-26 20:53:05 +0200 |
commit | a7bee2cdb8b4d4a2a250d611be4babd27043b6db (patch) | |
tree | 0135aa01a07e4ca72ae035c3179da7c82a92b777 /npc | |
parent | a1e841ccf13c63fefad02a1bfce0e50b92c649a0 (diff) | |
parent | 4118b1135eb79c211aafb6408a4ad8cf9ce09b02 (diff) | |
download | hercules-a7bee2cdb8b4d4a2a250d611be4babd27043b6db.tar.gz hercules-a7bee2cdb8b4d4a2a250d611be4babd27043b6db.tar.bz2 hercules-a7bee2cdb8b4d4a2a250d611be4babd27043b6db.tar.xz hercules-a7bee2cdb8b4d4a2a250d611be4babd27043b6db.zip |
Merge pull request #2164 from mekolat/addvariable
always set the type to C_NAME when adding variables through script->add_str
Diffstat (limited to 'npc')
-rw-r--r-- | npc/dev/test.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/dev/test.txt b/npc/dev/test.txt index 036a94916..bdbc52ed4 100644 --- a/npc/dev/test.txt +++ b/npc/dev/test.txt @@ -762,7 +762,7 @@ function script HerculesSelfTestHelper { callsub(OnCheck, "Getdatatype (numeric variable)", getdatatype(.@x), DATATYPE_INT | DATATYPE_VAR); callsub(OnCheck, "Getdatatype (string variable)", getdatatype(.@x$), DATATYPE_STR | DATATYPE_VAR); callsub(OnCheck, "Getdatatype (label)", getdatatype(OnTestGetdatatype), DATATYPE_LABEL); - //callsub(OnCheck, "Getdatatype (constant)", getdatatype(DATATYPE_CONST), DATATYPE_CONST); // FIXME + callsub(OnCheck, "Getdatatype (constant)", getdatatype(DATATYPE_CONST), DATATYPE_INT | DATATYPE_CONST); callsub(OnCheck, "Getdatatype (returned integer)", getdatatype(callsub(OnTestReturnValue, 5)), DATATYPE_INT); callsub(OnCheck, "Getdatatype (returned string)", getdatatype(callsub(OnTestReturnValue, "foo")), DATATYPE_STR | DATATYPE_CONST); callsub(OnCheck, "Getdatatype (getarg default value)", callsub(OnTestGetdatatypeDefault), DATATYPE_INT); |