Added missing ENDTRY macros (only needed for C compatibility)