diff options
author | Martin Peach <mrpeach@users.sourceforge.net> | 2012-01-31 22:21:16 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@iem.at> | 2015-10-14 14:28:31 +0200 |
commit | c001c1b19cf46b5db0c7abfe3d92aad0f49282b0 (patch) | |
tree | 7d1add6dd2086cd902f4f96702f97590cf1cc2f3 /src/pd.lua | |
parent | 0bece0229c460f92dc185702ad1ca9e0114ffa26 (diff) |
Right-click opens .pdlua script in an editor. .pdluax still doesn't work unless script is in same directory Pd was started from.
svn path=/trunk/externals/loaders/pdlua/; revision=15930
Diffstat (limited to 'src/pd.lua')
-rw-r--r-- | src/pd.lua | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -83,6 +83,13 @@ pd._whoami = function (object) end end +--class method dispatcher +pd._get_class = function (object) + if nil ~= pd._objects[object] then + return pd._objects[object]:get_class() + end +end + -- prototypical OO system pd.Prototype = { } function pd.Prototype:new(o) @@ -288,6 +295,9 @@ end function pd.Class:whoami() return self._scriptname or self._name end +function pd.Class:get_class() -- accessor for t_class* + return self._class or nil +end local lua = pd.Class:new():register("pdlua") -- global controls (the [pdlua] object only) function lua:initialize(sel, atoms) |