1
SH_LOCALCREATE
Nunuhara Cabbage edited this page 2019-11-05 21:49:14 -08:00

SH_LOCALCREATE <varno> <structno>

Instruction Arguments

int32 varno - The index of the struct variable to initialize
int32 structno - The index of the struct type to initialize

Stack Arguments

None.

Description

Initialize a struct variable.

Example

The following example initializes local variable 3, which should be a struct type 8. This initializes the members of the struct (in a type-dependent way) and calls the constructor if one exists.

SH_LOCALCREATE 0x3 0x8 ; stack: []