Artifact 4719f257098862d724c5e3cec9f5db35bd4ee090913e5361a90c33cfd9c23ca4:
Otherwise, it would crash if al_uinstall_system() has already been
called. Handling it this way eliminates the need to dealloc all objects
before calling al_uninstall_system(), which meant that it was the users
repsonsibility to call al_uninstall_system() after the user made sure
all objects are deallocated. Now the user does not get to see any
al_*() function.
by
js on
2012-08-26 12:17:52.
C Only\scall\sal_*_destroy\sif\sAllegro\sis\sinitialized.\n\nOtherwise,\sit\swould\scrash\sif\sal_uinstall_system()\shas\salready\sbeen\ncalled.\sHandling\sit\sthis\sway\seliminates\sthe\sneed\sto\sdealloc\sall\sobjects\nbefore\scalling\sal_uninstall_system(),\swhich\smeant\sthat\sit\swas\sthe\susers\nrepsonsibility\sto\scall\sal_uninstall_system()\safter\sthe\suser\smade\ssure\nall\sobjects\sare\sdeallocated.\sNow\sthe\suser\sdoes\snot\sget\sto\ssee\sany\nal_*()\sfunction. D 2012-08-26T12:17:53 F Makefile 9b7eb118a89b3cfee4ed451c65055cd718ff91ac30542dcefa9d3c033315b1a5 F src/Makefile ba2e7eda2e4bf235d87a4305734f82cccfeaf6ab8b926e1e4cef1ca64a14d217 F src/OGKBitmap.h 13fb383bcbe58a8bda142e81956b73ae3720b4c9095d251b302f7b073db643d6 F src/OGKBitmap.m ffce6aad9257b330fea3b5975fe3c302e5dfe6eaeea9f043c9a21fbc62ed2cd2 F src/OGKDisplay.h 5aa9048201d9a041a66e72b7c6f87e2a3903cb57eb9e846f4f7fc84ee8c90c78 F src/OGKDisplay.m 2b13daa36502fdb658777f0f85728bc17e05f47afed64ad06e048df230708bab F src/OGKEvent.h 19b5dab0820d5444d985e6279b7264383ed6a1c69012901605ec4d5cff2811f1 F src/OGKEvent.m 5e13753bebf733093e9c3cd4acb0b7d517f1d264e1ef29fdfe240c282a4b8fa5 F src/OGKEventQueue.h b38728a4f6b4f9a4284f227efba379434589dc497ea0b959fff8595ba88cb577 F src/OGKEventQueue.m 84dbf1da645f744ba6c363188eb7fe3754f60ca6a6b5d2a66d612a344aea1b42 F test/Makefile c184791af8260bd3ddef87e78e0bf0999462359578d513ae50bdcdaf31e7d8c2 F test/TestMain.h 150ee79de493418011b45d1bddfaca86943bccf4ce93e23b969a54cdffb56153 F test/TestMain.m 28b7846922ce16516ef355b392ecffd582aa22555aae0555da016a6ff991fe30 F test/test.bmp 31b66dd80e42202e8e8d0bede1cdefc8cf625e847ca1649c3f01658aff810307 P 40c2d53ff01f7539248bcdb02430bcdf58a73704c0e32a63e8e10cd84a536438 U js Z 245161157aca0a3f549f589de18c60c9