polar-objc 5.44
An Objective-C runtime library
Loading...
Searching...
No Matches
objc-table-module-symbols.c
1/* Internal API: module symbol table utility routines for polar-objc.
2 Copyright (C) 2022-2025 Michael Malicoat <[email protected]>
3
4 This file is part of polar-objc.
5
6 polar-objc is free software; you can redistribute it and/or modify it under the terms of the GNU General Public
7 License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
8
9 polar-objc is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
10 warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
11 details.
12
13 You should have received a copy of the GNU General Public License along with this program; see the file LICENSE. If
14 not, see <http://www.gnu.org/licenses/>.
15*/
16
17// Public ==============================================================================================================
18
19POLAR_FUNCTION_INTERNAL struct objc_class *
20objc_table_module_symbols_get_class( const struct objc_table_module_symbols *table_symbols, intptr_t idx_class )
21{
22 if( (table_symbols != NULL) && (idx_class >= 0) && (idx_class < table_symbols->count_class_defs) )
23 {
24 return (struct objc_class *)( table_symbols->array_defs[idx_class] );
25 }
26
27 return Nil;
28}