Commit 0a6dc95f authored by PoroCYon's avatar PoroCYon

thanks krzys (+ extra fix that somehow didn't get through in the previous commit)

parent 846ed8f1
Pipeline #35340522 passed with stages
in 1 minute and 47 seconds
......@@ -9,11 +9,13 @@ namespace Altar
{
public struct Etor : IEnumerator<T>
{
bool firstest;
uint curind;
LazyArray<T> arr;
internal Etor(LazyArray<T> arr)
{
firstest = true;
curind = 0;
this.arr = arr;
}
......@@ -23,11 +25,17 @@ namespace Altar
public bool MoveNext()
{
if (firstest)
{
firstest = false;
return true;
}
++curind;
return curind < arr.Length;
}
public void Reset()
{
firstest = true;
curind = 0;
}
......
......@@ -564,12 +564,16 @@ namespace Altar
String = 1,
Double = 2
}
public enum ExtensionCC : uint
{
Cdecl = 0x0C
}
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public unsafe struct ExtensionFunctionEntry
{
public uint GMLName;
public uint ID;
public ExtensionType Type; // is this the correct type?
public ExtensionCC CallingConvention;
public ExtensionFFIType ReturnType;
public uint SymbolName;
public uint ArgumentCount;
......
......@@ -306,7 +306,7 @@ namespace Altar
{
public string GMLName;
public uint ID;
public ExtensionType Type;
public ExtensionCC CallingConvention;
public ExtensionFFIType ReturnType;
public string SymbolName;
public ExtensionFFIType[] Arguments;
......
......@@ -717,7 +717,7 @@ namespace Altar.Unpack
ExtensionFunctionInfo fff;
fff.GMLName = StringFromOffset(c, efff->GMLName);
fff.ID = efff->ID ;
fff.Type = efff->Type ;
fff.CallingConvention = efff->CallingConvention;
fff.ReturnType = efff->ReturnType;
fff.SymbolName = StringFromOffset(c, efff->SymbolName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment