neo-devpack-dotnet
neo-devpack-dotnet copied to clipboard
_internalInline should be a stack instead of a single bool variable
If I call another internal method in an inline method, the arguments for the internal method should be prepared from the inline method context. However, with a bool _internalInline, we cannot know whether we are handling an external method calling an inline method, or an inline method calling an internal method.
can you provide an example?
can you provide an example?
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private static ByteString MyMethod(int foo, ByteString bar) => AnotherMethod(foo, bar);
private static ByteString AnotherMethod(int foo, ByteString bar) => StdLib.Serialize((foo, bar));