nameof added
This commit is contained in:
parent
0ea49d861d
commit
1bac842746
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -12,7 +12,7 @@ instead (1.2.0) unstable; urgency=low
|
|||
* hook and inherit;
|
||||
* entered/left human friendly actions;
|
||||
* stead.cmd, stead.args added;
|
||||
* require added (modules: goto, xobj, input, click, vars, dbg, snapshot, prefs);
|
||||
* require added (modules: goto, xact, input, click, vars, dbg, snapshot, prefs);
|
||||
* time of save slots;
|
||||
* check_version added;
|
||||
* taketo/takef added;
|
||||
|
@ -24,6 +24,7 @@ instead (1.2.0) unstable; urgency=low
|
|||
* code function!!!;
|
||||
* args in call;
|
||||
* self() is now self;
|
||||
* nameof();
|
||||
* no return goto needed;
|
||||
* many small bugfixes...
|
||||
|
||||
|
|
|
@ -2420,6 +2420,13 @@ function hook(o, f)
|
|||
end
|
||||
stead.hook = hook
|
||||
|
||||
function nameof(v)
|
||||
if isObject(v) then
|
||||
local r = call(v, 'nam');
|
||||
return r
|
||||
end
|
||||
end
|
||||
|
||||
function version(v)
|
||||
if not tostring(v) then
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue