| | 605 | ;; @def RT_NOCRT_BEGINPROC |
|---|
| | 606 | ; Starts a NOCRT procedure, taking care of name wrapping and aliasing. |
|---|
| | 607 | ; |
|---|
| | 608 | ; Aliasing (weak ones, if supported) will be created when RT_WITH_NOCRT_ALIASES |
|---|
| | 609 | ; is defined and RT_WITHOUT_NOCRT_WRAPPERS isn't. |
|---|
| | 610 | ; |
|---|
| | 611 | %macro RT_NOCRT_BEGINPROC 1 |
|---|
| | 612 | %ifdef RT_WITH_NOCRT_ALIASES |
|---|
| | 613 | BEGINPROC RT_NOCRT(%1) |
|---|
| | 614 | %ifdef ASM_FORMAT_ELF |
|---|
| | 615 | global NAME(%1) |
|---|
| | 616 | weak NAME(%1) |
|---|
| | 617 | NAME(%1): |
|---|
| | 618 | %else |
|---|
| | 619 | GLOBALNAME %1 |
|---|
| | 620 | %endif |
|---|
| | 621 | %else ; !RT_WITH_NOCRT_ALIASES |
|---|
| | 622 | BEGINPROC RT_NOCRT(%1) |
|---|
| | 623 | %endif ; !RT_WITH_NOCRT_ALIASES |
|---|
| | 624 | %endmacro ; RT_NOCRT_BEGINPROC |
|---|
| | 625 | |
|---|
| | 626 | %ifdef RT_WITH_NOCRT_ALIASES |
|---|
| | 627 | %ifdef RT_WITHOUT_NOCRT_WRAPPERS |
|---|
| | 628 | %error "RT_WITH_NOCRT_ALIASES and RT_WITHOUT_NOCRT_WRAPPERS doesn't mix." |
|---|
| | 629 | %endif |
|---|
| | 630 | %endif |
|---|
| | 631 | |
|---|