Skip to content

Commit

Permalink
Move pragma msg to top
Browse files Browse the repository at this point in the history
  • Loading branch information
dd86k committed Jun 24, 2021
1 parent 96a6f09 commit f2e2f49
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/ddcpuid.d
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,13 @@ private enum VENDOR_OFFSET = CPUINFO.vendor.offsetof;
private enum BRAND_OFFSET = CPUINFO.brand.offsetof;
private enum VIRTVENDOR_OFFSET = CPUINFO.virt.offsetof + CPUINFO.virt.vendor.offsetof;

pragma(msg, "VENDOR_OFFSET\t", VENDOR_OFFSET);
pragma(msg, "BRAND_OFFSET\t", BRAND_OFFSET);
pragma(msg, "VIRTVENDOR_OFFSET\t", VIRTVENDOR_OFFSET);
version (PrintInfo) {
pragma(msg, "VENDOR_OFFSET\t", VENDOR_OFFSET);
pragma(msg, "BRAND_OFFSET\t", BRAND_OFFSET);
pragma(msg, "VIRTVENDOR_OFFSET\t", VIRTVENDOR_OFFSET);
pragma(msg, "CPUINFO.sizeof\t", CPUINFO.sizeof);
pragma(msg, "CACHE.sizeof\t", CACHEINFO.sizeof);
}

/// Make a bit mask of one bit at n position
private
Expand Down Expand Up @@ -1658,9 +1662,4 @@ L_CACHE_AMD_LEGACY:
break;
default:
}
}

version (PrintInfo) {
pragma(msg, "* CPUINFO.sizeof: ", CPUINFO.sizeof);
pragma(msg, "* CACHE.sizeof: ", CACHEINFO.sizeof);
}

0 comments on commit f2e2f49

Please sign in to comment.