diff --git a/src/de/inetsoftware/jwebassembly/module/WasmInstruction.java b/src/de/inetsoftware/jwebassembly/module/WasmInstruction.java index 607c385..be469ab 100644 --- a/src/de/inetsoftware/jwebassembly/module/WasmInstruction.java +++ b/src/de/inetsoftware/jwebassembly/module/WasmInstruction.java @@ -49,4 +49,12 @@ abstract class WasmInstruction { * if any I/O error occur */ abstract void writeTo( @Nonnull ModuleWriter writer ) throws IOException; + + /** + * Get current code position in Java method. + * @return the position + */ + int getCodePosition() { + return javaCodePos; + } }