Changeset 4652 for zzuf


Ignore:
Timestamp:
Sep 22, 2010, 9:47:00 PM (9 years ago)
Author:
Sam Hocevar
Message:

Minor Win32 code simplification in sys.c.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/libzzuf/sys.c

    r4651 r4652  
    9494    diversions[] =
    9595    {
    96         { "kernel32.dll", "LoadLibraryA", &LoadLibraryA_orig, LoadLibraryA_new },
    97         { "kernel32.dll", "AllocConsole", &AllocConsole_orig, AllocConsole_new },
    98         { "kernel32.dll", "AttachConsole", &AttachConsole_orig, AttachConsole_new },
     96#define DIVERT(x) { "kernel32.dll", #x, &x##_orig, x##_new }
     97        DIVERT(LoadLibraryA),
     98        DIVERT(AllocConsole),
     99        DIVERT(AttachConsole),
    99100    };
    100101
Note: See TracChangeset for help on using the changeset viewer.