Changeset 76371 in vbox for trunk/include/iprt
- Timestamp:
- Dec 22, 2018 4:35:55 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/assert.h
r76327 r76371 406 406 else \ 407 407 { \ 408 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \408 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 409 409 RTAssertPanic(); \ 410 410 stmt; \ … … 469 469 else \ 470 470 { \ 471 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \471 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 472 472 RTAssertPanic(); \ 473 473 stmt; \ … … 501 501 else if (1) \ 502 502 { \ 503 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \503 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 504 504 RTAssertPanic(); \ 505 505 break; \ … … 526 526 else if (1) \ 527 527 { \ 528 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \528 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 529 529 RTAssertPanic(); \ 530 530 continue; \ … … 551 551 else if (1) \ 552 552 { \ 553 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \553 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 554 554 RTAssertPanic(); \ 555 555 stmt; \ … … 606 606 else \ 607 607 { \ 608 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \608 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 609 609 RTAssertMsg2Weak a; \ 610 610 RTAssertPanic(); \ … … 674 674 else \ 675 675 { \ 676 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \676 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 677 677 RTAssertMsg2Weak a; \ 678 678 RTAssertPanic(); \ … … 741 741 else \ 742 742 { \ 743 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \743 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 744 744 RTAssertMsg2Weak a; \ 745 745 RTAssertPanic(); \ … … 775 775 else if (1) \ 776 776 { \ 777 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \777 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 778 778 RTAssertMsg2Weak a; \ 779 779 RTAssertPanic(); \ … … 803 803 else if (1) \ 804 804 { \ 805 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \805 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 806 806 RTAssertMsg2Weak a; \ 807 807 RTAssertPanic(); \ … … 857 857 # define AssertFailedReturn(rc) \ 858 858 do { \ 859 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \859 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 860 860 RTAssertPanic(); \ 861 861 return (rc); \ … … 878 878 # define AssertFailedReturnStmt(stmt, rc) \ 879 879 do { \ 880 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \880 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 881 881 RTAssertPanic(); \ 882 882 stmt; \ … … 897 897 # define AssertFailedReturnVoid() \ 898 898 do { \ 899 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \899 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 900 900 RTAssertPanic(); \ 901 901 return; \ … … 917 917 # define AssertFailedReturnVoidStmt(stmt) \ 918 918 do { \ 919 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \919 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 920 920 RTAssertPanic(); \ 921 921 stmt; \ … … 937 937 # define AssertFailedBreak() \ 938 938 if (1) { \ 939 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \939 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 940 940 RTAssertPanic(); \ 941 941 break; \ … … 959 959 # define AssertFailedBreakStmt(stmt) \ 960 960 if (1) { \ 961 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \961 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 962 962 RTAssertPanic(); \ 963 963 stmt; \ … … 1000 1000 # define AssertMsgFailedReturn(a, rc) \ 1001 1001 do { \ 1002 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1002 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1003 1003 RTAssertMsg2Weak a; \ 1004 1004 RTAssertPanic(); \ … … 1020 1020 # define AssertMsgFailedReturnVoid(a) \ 1021 1021 do { \ 1022 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1022 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1023 1023 RTAssertMsg2Weak a; \ 1024 1024 RTAssertPanic(); \ … … 1041 1041 # define AssertMsgFailedBreak(a) \ 1042 1042 if (1) { \ 1043 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1043 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1044 1044 RTAssertMsg2Weak a; \ 1045 1045 RTAssertPanic(); \ … … 1065 1065 # define AssertMsgFailedBreakStmt(a, stmt) \ 1066 1066 if (1) { \ 1067 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1067 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1068 1068 RTAssertMsg2Weak a; \ 1069 1069 RTAssertPanic(); \ … … 1128 1128 else \ 1129 1129 { \ 1130 RTAssertLogRelMsg1(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1130 RTAssertLogRelMsg1(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1131 1131 RTAssertPanic(); \ 1132 1132 } \ … … 1146 1146 else \ 1147 1147 { \ 1148 RTAssertLogRelMsg1(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1148 RTAssertLogRelMsg1(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1149 1149 RTAssertPanic(); \ 1150 1150 return (rc); \ … … 1164 1164 else \ 1165 1165 { \ 1166 RTAssertLogRelMsg1(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1166 RTAssertLogRelMsg1(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1167 1167 RTAssertPanic(); \ 1168 1168 return; \ … … 1181 1181 else if (1) \ 1182 1182 { \ 1183 RTAssertLogRelMsg1(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1183 RTAssertLogRelMsg1(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1184 1184 RTAssertPanic(); \ 1185 1185 break; \ … … 1200 1200 else if (1) \ 1201 1201 { \ 1202 RTAssertLogRelMsg1(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1202 RTAssertLogRelMsg1(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1203 1203 RTAssertPanic(); \ 1204 1204 stmt; \ … … 1220 1220 else \ 1221 1221 { \ 1222 RTAssertLogRelMsg1(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1222 RTAssertLogRelMsg1(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1223 1223 RTAssertPanic(); \ 1224 1224 stmt; \ … … 1239 1239 else\ 1240 1240 { \ 1241 RTAssertLogRelMsg1(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1241 RTAssertLogRelMsg1(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1242 1242 RTAssertLogRelMsg2(a); \ 1243 1243 RTAssertPanic(); \ … … 1259 1259 else\ 1260 1260 { \ 1261 RTAssertLogRelMsg1(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1261 RTAssertLogRelMsg1(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1262 1262 RTAssertLogRelMsg2(a); \ 1263 1263 RTAssertPanic(); \ … … 1280 1280 else\ 1281 1281 { \ 1282 RTAssertLogRelMsg1(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1282 RTAssertLogRelMsg1(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1283 1283 RTAssertLogRelMsg2(a); \ 1284 1284 RTAssertPanic(); \ … … 1304 1304 else\ 1305 1305 { \ 1306 RTAssertLogRelMsg1(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1306 RTAssertLogRelMsg1(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1307 1307 RTAssertLogRelMsg2(a); \ 1308 1308 RTAssertPanic(); \ … … 1325 1325 else\ 1326 1326 { \ 1327 RTAssertLogRelMsg1(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1327 RTAssertLogRelMsg1(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1328 1328 RTAssertLogRelMsg2(a); \ 1329 1329 RTAssertPanic(); \ … … 1344 1344 else if (1) \ 1345 1345 { \ 1346 RTAssertLogRelMsg1(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1346 RTAssertLogRelMsg1(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1347 1347 RTAssertLogRelMsg2(a); \ 1348 1348 RTAssertPanic(); \ … … 1365 1365 else if (1) \ 1366 1366 { \ 1367 RTAssertLogRelMsg1(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1367 RTAssertLogRelMsg1(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1368 1368 RTAssertLogRelMsg2(a); \ 1369 1369 RTAssertPanic(); \ … … 1379 1379 #define AssertLogRelFailed() \ 1380 1380 do { \ 1381 RTAssertLogRelMsg1((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1381 RTAssertLogRelMsg1((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1382 1382 RTAssertPanic(); \ 1383 1383 } while (0) … … 1391 1391 #define AssertLogRelFailedReturn(rc) \ 1392 1392 do { \ 1393 RTAssertLogRelMsg1((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1393 RTAssertLogRelMsg1((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1394 1394 RTAssertPanic(); \ 1395 1395 return (rc); \ … … 1402 1402 #define AssertLogRelFailedReturnVoid() \ 1403 1403 do { \ 1404 RTAssertLogRelMsg1((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1404 RTAssertLogRelMsg1((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1405 1405 RTAssertPanic(); \ 1406 1406 return; \ … … 1414 1414 if (1) \ 1415 1415 { \ 1416 RTAssertLogRelMsg1((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1416 RTAssertLogRelMsg1((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1417 1417 RTAssertPanic(); \ 1418 1418 break; \ … … 1429 1429 if (1) \ 1430 1430 { \ 1431 RTAssertLogRelMsg1((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1431 RTAssertLogRelMsg1((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1432 1432 RTAssertPanic(); \ 1433 1433 stmt; \ … … 1444 1444 #define AssertLogRelMsgFailed(a) \ 1445 1445 do { \ 1446 RTAssertLogRelMsg1((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1446 RTAssertLogRelMsg1((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1447 1447 RTAssertLogRelMsg2(a); \ 1448 1448 RTAssertPanic(); \ … … 1460 1460 #define AssertLogRelMsgFailedStmt(a, stmt) \ 1461 1461 do { \ 1462 RTAssertLogRelMsg1((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1462 RTAssertLogRelMsg1((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1463 1463 RTAssertLogRelMsg2(a); \ 1464 1464 RTAssertPanic(); \ … … 1475 1475 #define AssertLogRelMsgFailedReturn(a, rc) \ 1476 1476 do { \ 1477 RTAssertLogRelMsg1((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1477 RTAssertLogRelMsg1((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1478 1478 RTAssertLogRelMsg2(a); \ 1479 1479 RTAssertPanic(); \ … … 1492 1492 #define AssertLogRelMsgFailedReturnStmt(a, stmt, rc) \ 1493 1493 do { \ 1494 RTAssertLogRelMsg1((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1494 RTAssertLogRelMsg1((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1495 1495 RTAssertLogRelMsg2(a); \ 1496 1496 RTAssertPanic(); \ … … 1507 1507 #define AssertLogRelMsgFailedReturnVoid(a) \ 1508 1508 do { \ 1509 RTAssertLogRelMsg1((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1509 RTAssertLogRelMsg1((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1510 1510 RTAssertLogRelMsg2(a); \ 1511 1511 RTAssertPanic(); \ … … 1523 1523 #define AssertLogRelMsgFailedReturnVoidStmt(a, stmt) \ 1524 1524 do { \ 1525 RTAssertLogRelMsg1((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1525 RTAssertLogRelMsg1((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1526 1526 RTAssertLogRelMsg2(a); \ 1527 1527 RTAssertPanic(); \ … … 1539 1539 if (1)\ 1540 1540 { \ 1541 RTAssertLogRelMsg1((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1541 RTAssertLogRelMsg1((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1542 1542 RTAssertLogRelMsg2(a); \ 1543 1543 RTAssertPanic(); \ … … 1556 1556 if (1) \ 1557 1557 { \ 1558 RTAssertLogRelMsg1((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1558 RTAssertLogRelMsg1((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1559 1559 RTAssertLogRelMsg2(a); \ 1560 1560 RTAssertPanic(); \ … … 1612 1612 else \ 1613 1613 { \ 1614 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1614 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1615 1615 RTAssertReleasePanic(); \ 1616 1616 return (rc); \ … … 1629 1629 else \ 1630 1630 { \ 1631 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1631 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1632 1632 RTAssertReleasePanic(); \ 1633 1633 return; \ … … 1646 1646 else if (1) \ 1647 1647 { \ 1648 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1648 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1649 1649 RTAssertReleasePanic(); \ 1650 1650 break; \ … … 1663 1663 else if (1) \ 1664 1664 { \ 1665 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1665 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1666 1666 RTAssertReleasePanic(); \ 1667 1667 stmt; \ … … 1683 1683 else \ 1684 1684 { \ 1685 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1685 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1686 1686 RTAssertMsg2Weak a; \ 1687 1687 RTAssertReleasePanic(); \ … … 1702 1702 else \ 1703 1703 { \ 1704 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1704 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1705 1705 RTAssertMsg2Weak a; \ 1706 1706 RTAssertReleasePanic(); \ … … 1721 1721 else \ 1722 1722 { \ 1723 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1723 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1724 1724 RTAssertMsg2Weak a; \ 1725 1725 RTAssertReleasePanic(); \ … … 1740 1740 else if (1) \ 1741 1741 { \ 1742 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1742 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1743 1743 RTAssertMsg2Weak a; \ 1744 1744 RTAssertReleasePanic(); \ … … 1759 1759 else if (1) \ 1760 1760 { \ 1761 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1761 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1762 1762 RTAssertMsg2Weak a; \ 1763 1763 RTAssertReleasePanic(); \ … … 1773 1773 #define AssertReleaseFailed() \ 1774 1774 do { \ 1775 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1775 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1776 1776 RTAssertReleasePanic(); \ 1777 1777 } while (0) … … 1784 1784 #define AssertReleaseFailedReturn(rc) \ 1785 1785 do { \ 1786 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1786 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1787 1787 RTAssertReleasePanic(); \ 1788 1788 return (rc); \ … … 1794 1794 #define AssertReleaseFailedReturnVoid() \ 1795 1795 do { \ 1796 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1796 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1797 1797 RTAssertReleasePanic(); \ 1798 1798 return; \ … … 1805 1805 #define AssertReleaseFailedBreak() \ 1806 1806 if (1) { \ 1807 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1807 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1808 1808 RTAssertReleasePanic(); \ 1809 1809 break; \ … … 1818 1818 #define AssertReleaseFailedBreakStmt(stmt) \ 1819 1819 if (1) { \ 1820 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1820 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1821 1821 RTAssertReleasePanic(); \ 1822 1822 stmt; \ … … 1846 1846 #define AssertReleaseMsgFailedReturn(a, rc) \ 1847 1847 do { \ 1848 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1848 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1849 1849 RTAssertMsg2Weak a; \ 1850 1850 RTAssertReleasePanic(); \ … … 1859 1859 #define AssertReleaseMsgFailedReturnVoid(a) \ 1860 1860 do { \ 1861 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1861 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1862 1862 RTAssertMsg2Weak a; \ 1863 1863 RTAssertReleasePanic(); \ … … 1873 1873 #define AssertReleaseMsgFailedBreak(a) \ 1874 1874 if (1) { \ 1875 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1875 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1876 1876 RTAssertMsg2Weak a; \ 1877 1877 RTAssertReleasePanic(); \ … … 1888 1888 #define AssertReleaseMsgFailedBreakStmt(a, stmt) \ 1889 1889 if (1) { \ 1890 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1890 RTAssertMsg1Weak((const char *)0, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1891 1891 RTAssertMsg2Weak a; \ 1892 1892 RTAssertReleasePanic(); \ … … 1919 1919 for (;;) \ 1920 1920 { \ 1921 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1921 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1922 1922 RTAssertReleasePanic(); \ 1923 1923 } \ … … 1937 1937 for (;;) \ 1938 1938 { \ 1939 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, __PRETTY_FUNCTION__); \1939 RTAssertMsg1Weak(#expr, __LINE__, __FILE__, RT_GCC_EXTENSION __PRETTY_FUNCTION__); \ 1940 1940 RTAssertMsg2Weak a; \ 1941 1941 RTAssertReleasePanic(); \
Note:
See TracChangeset
for help on using the changeset viewer.