forked from ebecheto/Skill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathineed.il
29 lines (20 loc) · 978 Bytes
/
ineed.il
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
;; copyleft ebecheto
;; load("ineed.il")
;; quand j'y pense, ma fonction ineed ressemble pas mal a (require 'truc) de emacs... non ?
;; si ce n'est les search dans les differents repertoires
;; ineed('whereExistCell3) ;=> ok charge whereExistCell3.il
;; putd('whereExistCell3 nil);=> purge la fonction
defun(ineed (func @optional (force nil))
cond((nil nil)
(listp(func) foreach(mapcar f func ineed(f force)))
(t unless(fboundp(func)&¬(force) load(strcat(symbolToString(func) ".il"))))))
;; ineed('(getInstTermPoint whereExistCell3))
;; putd('whereExistCell3 nil)
;; putd('getInstTermPoint nil)
; oldest -1
;; defun(ineed (func @optional (force nil))
;; cond((nil nil)
;; (listp(func) foreach(mapcar f func unless(fboundp(f)&¬(force) load(strcat(symbolToString(f) ".il")))))
;; (t unless(fboundp(func)&¬(force) load(strcat(symbolToString(func) ".il"))))))
; oldest version
;; defun(ineed (func) unless(fboundp(func) load(strcat(symbolToString(func) ".il"))))