Setattr -> SetFlag
This commit is contained in:
parent
e48c2ce35e
commit
23f0df2c0e
1 changed files with 8 additions and 8 deletions
|
|
@ -1301,7 +1301,7 @@ public:
|
||||||
proxy_class_name = 0;
|
proxy_class_name = 0;
|
||||||
return SWIG_NOWRAP;
|
return SWIG_NOWRAP;
|
||||||
}
|
}
|
||||||
Setattr(emitted, mangled_fr_t, "1");
|
SetFlag(emitted, mangled_fr_t);
|
||||||
|
|
||||||
// We treat class T as both 'class' and 'namespace'. All static members, attributes
|
// We treat class T as both 'class' and 'namespace'. All static members, attributes
|
||||||
// and constants are considered part of namespace T, all members - part of the 'class'
|
// and constants are considered part of namespace T, all members - part of the 'class'
|
||||||
|
|
@ -1318,9 +1318,9 @@ public:
|
||||||
assert(instance_cls);
|
assert(instance_cls);
|
||||||
String *s_attr_tab_name = Getattr(instance_cls, "attributes:name");
|
String *s_attr_tab_name = Getattr(instance_cls, "attributes:name");
|
||||||
String *s_methods_tab_name = Getattr(instance_cls, "methods:name");
|
String *s_methods_tab_name = Getattr(instance_cls, "methods:name");
|
||||||
Setattr(instance_cls, "lua:no_namespaces", "1");
|
SetFlag(instance_cls, "lua:no_namespaces");
|
||||||
Setattr(instance_cls, "lua:no_classes", "1");
|
SetFlag(instance_cls, "lua:no_classes");
|
||||||
Setattr(instance_cls, "lua:class_instance", "1");
|
SetFlag(instance_cls, "lua:class_instance");
|
||||||
|
|
||||||
/* There is no use for "constants", "classes" and "namespaces" arrays.
|
/* There is no use for "constants", "classes" and "namespaces" arrays.
|
||||||
* All constants are considered part of static part of class.
|
* All constants are considered part of static part of class.
|
||||||
|
|
@ -1329,8 +1329,8 @@ public:
|
||||||
class_static_nspace = NewStringf("%s%s__Static", full_proxy_class_name, NSPACE_SEPARATOR);
|
class_static_nspace = NewStringf("%s%s__Static", full_proxy_class_name, NSPACE_SEPARATOR);
|
||||||
Hash *static_cls = getCArraysHash(class_static_nspace, false);
|
Hash *static_cls = getCArraysHash(class_static_nspace, false);
|
||||||
assert(static_cls);
|
assert(static_cls);
|
||||||
Setattr(static_cls, "lua:no_namespaces", "1");
|
SetFlag(static_cls, "lua:no_namespaces");
|
||||||
Setattr(static_cls, "lua:class_static", "1");
|
SetFlag(static_cls, "lua:class_static");
|
||||||
|
|
||||||
// Notifying instance_cls and static_cls hashes about each other
|
// Notifying instance_cls and static_cls hashes about each other
|
||||||
Setattr(instance_cls, "lua:class_instance:static_hash", static_cls);
|
Setattr(instance_cls, "lua:class_instance:static_hash", static_cls);
|
||||||
|
|
@ -1945,7 +1945,7 @@ public:
|
||||||
Delete(components);
|
Delete(components);
|
||||||
Delete(parent_path);
|
Delete(parent_path);
|
||||||
} else if (!reg) // This namespace shouldn't be registered. Lets remember it.
|
} else if (!reg) // This namespace shouldn't be registered. Lets remember it.
|
||||||
Setattr(carrays_hash, "lua:no_reg", "1");
|
SetFlag(carrays_hash, "lua:no_reg");
|
||||||
|
|
||||||
Delete(mangled_name);
|
Delete(mangled_name);
|
||||||
mangled_name = 0;
|
mangled_name = 0;
|
||||||
|
|
@ -1969,7 +1969,7 @@ public:
|
||||||
assert(carrays_hash);
|
assert(carrays_hash);
|
||||||
assert(Getattr(carrays_hash, "lua:closed") == 0);
|
assert(Getattr(carrays_hash, "lua:closed") == 0);
|
||||||
|
|
||||||
Setattr(carrays_hash, "lua:closed", "1");
|
SetFlag(carrays_hash, "lua:closed");
|
||||||
|
|
||||||
String *attr_tab = Getattr(carrays_hash, "attributes");
|
String *attr_tab = Getattr(carrays_hash, "attributes");
|
||||||
Printf(attr_tab, " {0,0,0}\n};\n");
|
Printf(attr_tab, " {0,0,0}\n};\n");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue