Browse Source

Add control over whether fast integer lookups are created

Hugh Sanderson 15 years ago
parent
commit
f0ac0041c0
2 changed files with 16 additions and 0 deletions
  1. 8 0
      std/cpp/rtti/FieldIntegerLookup.hx
  2. 8 0
      std/cpp/rtti/FieldNumericIntegerLookup.hx

+ 8 - 0
std/cpp/rtti/FieldIntegerLookup.hx

@@ -0,0 +1,8 @@
+package cpp.rtti;
+
+/**
+	If you implement this interface, then the backend will generate code that
+	allows fast dynamic access to fields by integer id.  This should speed up the CFFI.
+**/
+interface FieldIntegerLookup {
+}

+ 8 - 0
std/cpp/rtti/FieldNumericIntegerLookup.hx

@@ -0,0 +1,8 @@
+package cpp.rtti;
+
+/**
+	If you implement this interface, then the backend will generate code that
+	allows fast numeric access to fields by integer id.  This should speed up the CFFI.
+**/
+interface FieldNumericIntegerLookup {
+}