~lattis/muon

ref: 85283983c022b571ca80d040d866215509ad0afe muon/src/functions/external_library.c -rw-r--r-- 582 bytes
85283983Stone Tickle implement very basic pc file generation 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "posix.h"

#include "functions/common.h"
#include "functions/external_library.h"
#include "lang/interpreter.h"
#include "log.h"

static bool
func_external_library_found(struct workspace *wk, uint32_t rcvr, uint32_t args_node, uint32_t *obj)
{
	if (!interp_args(wk, args_node, NULL, NULL, NULL)) {
		return false;
	}

	struct obj *res = make_obj(wk, obj, obj_bool);
	res->dat.boolean = get_obj(wk, rcvr)->dat.external_library.found;

	return true;
}

const struct func_impl_name impl_tbl_external_library[] = {
	{ "found", func_external_library_found },
	{ NULL, NULL },
};