CopyStructure - with strings

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
mk-soft
Always Here
Always Here
Posts: 6209
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Post by mk-soft »

I havn`t a Mac to complet cross-platform :?:

Code: Select all

CompilerIf #PB_Compiler_Processor = #PB_Processor_mc68000
  ; MC68000 Processor  
  Macro EndStruct(StructureName) ; <- name of structure allways lowercase
    EndStructure
      Procedure ___dummy_#StructureName()
        Protected dummy.StructureName
      EndProcedure
      Procedure ___addr_#StructureName()
        ;!MOV eax, dword s_#StructureName
      ProcedureReturn
    EndProcedure
  EndMacro
CompilerEndIf
CompilerIf #PB_Compiler_Processor = #PB_Processor_PowerPC
  ; PowerPC Processor  
  Macro EndStruct(StructureName) ; <- name of structure allways lowercase
    EndStructure
      Procedure ___dummy_#StructureName()
        Protected dummy.StructureName
      EndProcedure
      Procedure ___addr_#StructureName()
        !MOV eax, dword s_#StructureName
      ProcedureReturn
    EndProcedure
  EndMacro
CompilerEndIf
who can help me 8)
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Post Reply