Skip to content

PdbCacheInit

Description

Initialize an empty cache.

Success

Returns true; out is zeroed and ready for Resolve.

Failure

Returns false on NULL arg.

Usage example (Cross-references)

Usage examples (Cross-references)
    
        PdbCache cache;
        if (!PdbCacheInit(&cache, base)) {
            DefaultAllocatorDeinit(&alloc);
            return false;
    
        PdbCache cache;
        PdbCacheInit(&cache, base);
        const char *name = NULL;
        bool        ok   = !PdbCacheResolve(&cache, missing, 0, 0x1000, &name, NULL);
    // ---------------------------------------------------------------------------
    
    bool PdbCacheInit(PdbCache *out, Allocator *alloc) {
        if (!out || !alloc)
            return false;
    #    if MISRA_HAVE_PARSER_PDB
        PdbCache pdb_cache;
        bool     pdb_cache_ok = alloc && PdbCacheInit(&pdb_cache, alloc);
    #    else
        (void)alloc;
Last updated on