home *** CD-ROM | disk | FTP | other *** search
- #ifndef lint
- static char *sccsid = "%Z% %I% %W% %G% %U% [%H% %T%] (c)IBM Corp. 1992";
- #endif
-
- /*
- * This class is adapted from the book
- * Class Construction in C and C++, Object Oriented Fundamentals
- * by Roger Sessions, Copyright (c) 1992 Prentice Hall.
- * Reprinted with permission.
- */
-
- /* File: helper.c */
- #include "msgid.h"
- #include "nlsutil.h"
-
- #if defined(_WIN32)
- #include "statcls.h"
- #endif
-
- #include "helper.h"
- #include <stdio.h>
- #include <stdlib.h>
-
- /* ************************************************************ */
- void shouldHaveOverridden(SOMObject * thisObject, char *methodName)
- {
- char *class = _somGetClassName(thisObject);
-
- printf(NlsMsgGet(RunTimeErrorId1));
- printf(NlsMsgGet(RunTimeErrorId2), methodName, class);
- printf(NlsMsgGet(RunTimeErrorId3), class, methodName);
- exit(1);
- }
-