Rename Compiler::mCodeDataAddr -> ScriptCompiled::mContext.
diff --git a/lib/bcc/Script.cpp b/lib/bcc/Script.cpp
index 74ecb98..6240ac7 100644
--- a/lib/bcc/Script.cpp
+++ b/lib/bcc/Script.cpp
@@ -331,6 +331,15 @@
mCompiled->getFunctions(actualFunctionCount, maxFunctionCount, functions);
}
+void const *Script::getContext() const {
+ if (mStatus != ScriptStatus::Compiled) {
+ //mErrorCode = BCC_INVALID_OPERATION;
+ return NULL;
+ }
+
+ return mCompiled->getContext();
+}
+
void Script::getFunctionBinary(BCCchar *function,
BCCvoid **base,