SwadicalRag / wasm2lua

wasm2lua: converting WASM into Lua
MIT License
190 stars 10 forks source link

Strings with user defined length in lua-webidl #15

Closed SwadicalRag closed 5 years ago

SwadicalRag commented 5 years ago

Should I make a new extAttr for this?

interface Test {
  void Func([String="inStr"] any str, [StringLength="inStr"] any len);
};

and len is automatically filled in by the compiler as size_t + str is filled in as char * or unsigned char * if [Unsigned] also present.

SwadicalRag commented 5 years ago

Obsolete due to #14