toString() for debugging

This commit is contained in:
Volker Berlin 2022-09-17 16:51:54 +02:00
parent 60d24f2feb
commit fbd6027055
No known key found for this signature in database
GPG Key ID: 988423EF815BE4CB

View File

@ -1,5 +1,5 @@
/*
Copyright 2018 - 2021 Volker Berlin (i-net software)
Copyright 2018 - 2022 Volker Berlin (i-net software)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -177,4 +177,12 @@ class WasmCallInstruction extends WasmInstruction {
paramCount--;
}
}
/**
* Only used for debugging
*/
@Override
public String toString() {
return getClass().getSimpleName() + ": call $" + name.signatureName + (comment == null ? "" : " ;; \"" + comment + "\"");
}
}