function generatePreImplemented($method, $class, $f) { if ($method['name'] == '__construct') { fprintf($f, " public: c_%s *create", $class['name']); generateFuncArgsCPPHeader($method, $f, true); fprintf($f, ";\n"); } }
function generatePreImplemented($method, $class, $f) { if ($method['name'] == '__construct') { fprintf($f, " public: c_%s *create", strtolower($class['name'])); generateFuncArgsCPPHeader($method, $f, true); fprintf($f, ";\n"); fprintf($f, " public: void dynConstruct(CArrRef Params);\n"); fprintf($f, " public: void dynConstructFromEval"); fprintf($f, "(Eval::VariableEnvironment &env,\n"); fprintf($f, " "); fprintf($f, "const Eval::FunctionCallExpression *call);\n"); } else { if ($method['name'] == '__destruct') { fprintf($f, " public: virtual void destruct();\n", $class['name']); } } }
function generatePreImplemented($method, $class, $f) { if ($method['name'] == '__construct') { fprintf($f, " public: c_%s *create", $class['name']); generateFuncArgsCPPHeader($method, $f, true); fprintf($f, ";\n"); fprintf($f, " public: void dynConstruct(CArrRef Params);\n"); fprintf($f, " public: void getConstructor(MethodCallPackage &mcp);\n"); } else { if ($method['name'] == '__destruct') { fprintf($f, " public: virtual void destruct();\n", $class['name']); } } }
function generatePreImplemented($method, $class, $f) { if ($method['name'] == '__construct') { fprintf($f, " public: ObjectData *create"); generateFuncArgsCPPHeader($method, $f, true, true); fprintf($f, ";\n"); fprintf($f, " public: void dynConstruct(CArrRef Params);\n"); } else { if ($method['name'] == '__destruct') { fprintf($f, " public: virtual void destruct();\n", $class['name']); } } }