rhelgeby / smprojectbase

Automatically exported from code.google.com/p/smprojectbase
0 stars 0 forks source link

EventMgr_OnPrintModuleInfo: sizeof result not cached in loops #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
eventmanager.inc

Cache the result from these calls:

sizeof(g_hEventModuleCache)
sizeof(registeredevents)

They are used in loops you they should be cached. It's a good habit to do 
so. ;)

Original issue reported on code.google.com by richard.helgeby@gmail.com on 1 Mar 2010 at 1:26

GoogleCodeExporter commented 9 years ago
sizeof() is handled on compilation, not run-time.  So in the actual code the 
correct 
values will be there.

Original comment by andrewbo...@gmail.com on 1 Mar 2010 at 8:54

GoogleCodeExporter commented 9 years ago

Original comment by andrewbo...@gmail.com on 2 Mar 2010 at 1:32