Data update

This commit is contained in:
Ingy dot Net 2024-04-19 16:56:29 -07:00
parent 0df55f9f24
commit aec8ed51b6
1045 changed files with 18889 additions and 2777 deletions

View file

@ -0,0 +1,5 @@
Private Sub i_am_private
End Sub
Public Sub i_am_public
End Sub

View file

@ -0,0 +1,2 @@
' declaring 'strcpy' from the standard C library
Declare Function strcpy Cdecl Alias "strcpy" (Byval dest As ZString Ptr, Byval src As ZString Ptr) As ZString Ptr

View file

@ -0,0 +1 @@
Declare Function MyFunctionPascal Pascal Alias "MyFunction" (param As Integer) As Integer

View file

@ -0,0 +1 @@
Declare Function MyFunc1 Stdcall (param1 As Integer, param2 As Integer) As Integer

View file

@ -0,0 +1,5 @@
CompilerIf #PB_Compiler_OS = #PB_OS_Linux
; some Linux specific code
CompilerElse
; some code for other operating systems
CompilerEndIf

View file

@ -0,0 +1,6 @@
CompilerSelect #PB_Compiler_OS
CompilerCase #PB_OS_MacOS
; some Mac OS
CompilerCase #PB_OS_Linux
; some Linux specific code
CompilerEndSelect

View file

@ -0,0 +1,5 @@
CompilerIf #PB_Compiler_OS = #PB_OS_Linux
CompilerError "Linux is not supported, sorry."
CompilerElse
CompilerWarning "OS supported, you can now comment me."
CompilerEndIf

View file

@ -0,0 +1,4 @@
EnableExplicit
Defines
a = 20 ; Ok, as declared with 'Define'
b = 10 ; Will raise an error here

View file

@ -0,0 +1,6 @@
; x86 assembly example
Test = 10
EnableASM
MOV dword [v_Test],20
DisableASM
DebugTest ; Will be 20