From f0aa52766da2afabbd787bdf1c81b95f893d147c Mon Sep 17 00:00:00 2001
From: Kristof Szabados <Kristof.Szabados@ericsson.com>
Date: Sat, 11 Aug 2018 12:31:06 +0200
Subject: [PATCH] get_descriptor is present in runtime2 so it also should be
 present in runtime1 to allow seemless switching between the runtimes.

Signed-off-by: Kristof Szabados <Kristof.Szabados@ericsson.com>
---
 compiler2/record.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/compiler2/record.c b/compiler2/record.c
index a1adab5a3..076f6b766 100644
--- a/compiler2/record.c
+++ b/compiler2/record.c
@@ -3640,6 +3640,11 @@ void defRecordClass1(const struct_def *sdef, output_struct *output)
   src = mputstr(src,
       "}\n\n");
 
+  def = mputstr(def, "const TTCN_Typedescriptor_t* get_descriptor() const;\n");
+  src = mputprintf(src,
+    "const TTCN_Typedescriptor_t* %s::get_descriptor() const { return &%s_descr_; }\n",
+    name, name);
+
   /* = operator */
   def = mputprintf(def, "  %s& operator=(const %s& other_value);\n", name, name);
   src = mputprintf(src, "%s& %s::operator=(const %s& other_value)\n"
-- 
GitLab