X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=Mate%2FGarbageAlloc.hs;h=e7c1cc955a266ab09fb3691945fb8aadd1d5272d;hb=94a3c50f1c43a7001791fed77560f268fc6d72a3;hp=56bb8f17a80cde7cfa65808258fdecaa74a907be;hpb=0ddbcb63c3be33c9825569711099851be38f2a7f;p=mate.git diff --git a/Mate/GarbageAlloc.hs b/Mate/GarbageAlloc.hs index 56bb8f1..e7c1cc9 100644 --- a/Mate/GarbageAlloc.hs +++ b/Mate/GarbageAlloc.hs @@ -6,9 +6,7 @@ module Mate.GarbageAlloc where import Foreign import Foreign.C -#ifdef DEBUG import Text.Printf -#endif import Mate.Debug -- unified place for allocating Memory @@ -30,3 +28,10 @@ mallocObject size = do ptr <- mallocBytes size printfStr "mallocObject: %d\n" size return $ fromIntegral $ ptrToIntPtr ptr + +-- TODO: delete me +foreign export ccall demoInterfaceCall :: CUInt -> IO () +demoInterfaceCall :: CUInt -> IO () +demoInterfaceCall val = do + printf "demoInterfaceCall: 0x%08x\n" (fromIntegral val :: Word32) + return ()