X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/8dba302b8123339889418d130c03bb2af4d0f464..c43f7bbf89a0653ed3665146f6f9586efbc07c5c:/src/class-utilities.lisp diff --git a/src/class-utilities.lisp b/src/class-utilities.lisp index 5a74bcb..d57d07d 100644 --- a/src/class-utilities.lisp +++ b/src/class-utilities.lisp @@ -7,7 +7,7 @@ ;;;----- Licensing notice --------------------------------------------------- ;;; -;;; This file is part of the Sensble Object Design, an object system for C. +;;; This file is part of the Sensible Object Design, an object system for C. ;;; ;;; SOD is free software; you can redistribute it and/or modify ;;; it under the terms of the GNU General Public License as published by @@ -189,6 +189,10 @@ (defun vtmsgs-struct-tag (class super) (format nil "~A__vtmsgs_~A" class (sod-class-nickname super))) +(export 'vtable-union-tag) +(defun vtable-union-tag (class chain-head) + (format nil "~A__vtu_~A" class (sod-class-nickname chain-head))) + (export 'vtable-struct-tag) (defun vtable-struct-tag (class chain-head) (format nil "~A__vt_~A" class (sod-class-nickname chain-head))) @@ -198,7 +202,7 @@ (format nil "~A__vtable_~A" class (sod-class-nickname chain-head))) (export 'message-macro-name) -(defun message-macro-name (class message) - (format nil "~A_~A" class (sod-message-name message))) +(defun message-macro-name (class entry) + (format nil "~A_~A" class (method-entry-slot-name entry))) ;;;----- That's all, folks --------------------------------------------------