Changeset 107102 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- Nov 22, 2024 7:57:01 AM (8 weeks ago)
- Location:
- trunk/src/VBox/ValidationKit/bootsectors/bs3kit
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/Makefile.kmk
r106061 r107102 73 73 bs3-cmn-A20Disable.asm \ 74 74 bs3-cmn-A20Enable.asm \ 75 bs3-cmn-Assert.c \ 75 76 bs3-cmn-GetCpuVendor.c \ 76 77 bs3-cmn-GetModeName.c \ -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit-autostubs.kmk
r104071 r107102 52 52 $(call BS3KIT_FN_GEN_CMN_FARSTUB,bs3kit-common-16,Bs3SelFar32ToFlat32NoClobber,6) 53 53 $(call BS3KIT_FN_GEN_CMN_FARSTUB,bs3kit-common-16,Bs3RegCtxSaveEx,8) 54 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3Assert) 54 55 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3ExtCtxSetAbridgedFtw) 55 56 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3ExtCtxSetMm) -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit-mangling-code-define.h
r105094 r107102 41 41 #define Bs3A20EnableViaKbd BS3_CMN_MANGLER(Bs3A20EnableViaKbd) 42 42 #define Bs3A20EnableViaPortA BS3_CMN_MANGLER(Bs3A20EnableViaPortA) 43 #define Bs3Assert BS3_CMN_MANGLER(Bs3Assert) 43 44 #define Bs3ExtCtxAlloc BS3_CMN_MANGLER(Bs3ExtCtxAlloc) 44 45 #define Bs3ExtCtxCopy BS3_CMN_MANGLER(Bs3ExtCtxCopy) -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit-mangling-code-undef.h
r105094 r107102 41 41 #undef Bs3A20EnableViaKbd 42 42 #undef Bs3A20EnableViaPortA 43 #undef Bs3Assert 43 44 #undef Bs3ExtCtxAlloc 44 45 #undef Bs3ExtCtxCopy -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit.h
r106061 r107102 1584 1584 * Assert that an expression is true. 1585 1585 * 1586 * Calls Bs3Panic if false and it's a strict build. Does nothing in 1587 * non-strict builds. */ 1588 #ifdef BS3_STRICT 1589 # define BS3_ASSERT(a_Expr) do { if (!!(a_Expr)) { /* likely */ } else { Bs3Panic(); } } while (0) /**< @todo later */ 1586 * @param a_Expr The expression to assert. 1587 * 1588 * If the expression is false, prints a message and calls Bs3Panic. 1589 * 1590 * This can be controlled with two defines: 1591 * 1592 * - BS3_ASSERT_IGNORE disables it entirely. 1593 * 1594 * - BS3_ASSERT_FILE prints filenames rather than function names. This 1595 * is disabled by default, as it consumes noticeably more image space. 1596 * Function name + line number are generally enough to find an issue. 1597 * 1598 * The expression string also consumes space. If necessary, reduce that 1599 * by using a simpler ASSERT() inside more a complicated `if'. 1600 */ 1601 BS3_CMN_PROTO_STUB(DECL_NO_RETURN(void), Bs3Assert,(const char BS3_FAR *pszExpr, const char BS3_FAR *pszFileOrFunc, const unsigned uLine)); 1602 #define BS3_ASSERT_IGNORE 1603 #if defined(BS3_ASSERT_IGNORE) 1604 # define BS3_ASSERT(a_Expr) do { } while (0) 1605 #elif defined(BS3_ASSERT_FILE) 1606 # define BS3_ASSERT(a_Expr) do { if (!!(a_Expr)) { /* likely */ } else { Bs3Assert(#a_Expr, __FILE__, __LINE__); } } while (0) 1590 1607 #else 1591 # define BS3_ASSERT(a_Expr) do { } while (0)1608 # define BS3_ASSERT(a_Expr) do { if (!!(a_Expr)) { /* likely */ } else { Bs3Assert(#a_Expr, __func__, __LINE__); } } while (0) 1592 1609 #endif 1593 1610
Note:
See TracChangeset
for help on using the changeset viewer.