- Notifications
You must be signed in to change notification settings - Fork2
Home
Tim Potze edited this pageMar 10, 2025 ·1 revision
Welcome to the openmp-sampsharp-x64-poc wiki!Below are some random snippets of docs that will eventually find its way in to SampSharp documentation
Generated startup code
usingSystem;usingSystem.Runtime.InteropServices;usingSampSharp.Core;namespaceSampSharp{publicstaticclassEntrypoint{privatestaticreadonly<StartupType>_startup=new();privatestaticStartupContext_context;[UnmanagedCallersOnly]publicstaticvoidCleanup(){_context?.InvokeCleanup();}[UnmanagedCallersOnly]publicstaticvoidInitialize(SampSharpInitParamsinf){_context=newStartupContext(inf);_context.InitializeUsing(_startup);}publicstaticvoidMain(){StartupContext.MainInfoProvider();}}}