From f71747a87f9fd50ae7a13992397d4f55dd32dafe Mon Sep 17 00:00:00 2001 From: Volker Berlin Date: Sun, 18 Nov 2018 13:00:49 +0100 Subject: [PATCH] Move WasmTextCode from tests into the core of the compiler for internal use. --- .../jwebassembly/api/annotation/WasmTextCode.java | 10 ++++++++++ 1 file changed, 10 insertions(+) rename {test => src}/de/inetsoftware/jwebassembly/api/annotation/WasmTextCode.java (76%) diff --git a/test/de/inetsoftware/jwebassembly/api/annotation/WasmTextCode.java b/src/de/inetsoftware/jwebassembly/api/annotation/WasmTextCode.java similarity index 76% rename from test/de/inetsoftware/jwebassembly/api/annotation/WasmTextCode.java rename to src/de/inetsoftware/jwebassembly/api/annotation/WasmTextCode.java index b892c55..9348f59 100644 --- a/test/de/inetsoftware/jwebassembly/api/annotation/WasmTextCode.java +++ b/src/de/inetsoftware/jwebassembly/api/annotation/WasmTextCode.java @@ -35,4 +35,14 @@ public @interface WasmTextCode { * @return the native WASM code */ String value(); + + /** + * Override the Java signature to support more as one return parameter. If you use this then you can't use it + * anymore in Java code directly. It is recommended to use this only with the modifier native. + *

+ * Sample: "(I)II" + * + * @return optional Java method signature. + */ + String signature() default ""; }