-
Notifications
You must be signed in to change notification settings - Fork 0
/
require.qfl
26 lines (17 loc) · 1.84 KB
/
require.qfl
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
'@Description Loads the specified function library. Guarantees that the library will only be loaded once.
'@Documentation If "<library>" has not been loaded, then load it now.
Public Function Require(ByRef library)
Require = LibraryManager.LoadLibrary(library)
End Function
'@Description Shortcut method that loads a Quality Center resource. Basically, prepends "[QualityCenter\Resources] Resources"
'@Documentation If "<resource>" has not been resource, then load it now.
Public Function RequireRes(ByRef resource)
RequireRes = Require("[QualityCenter\Resources] Resources\" & resource)
End Function
If Not INCLUDED_REQUIRE_LOADER__ Then
INCLUDED_REQUIRE_LOADER__ = True
ExecuteFile "[QualityCenter\Resources] Resources\QAI\Bootstrap\library_manager.qfl"
' I can guarantee that require.qfl has also been loaded
LibraryManager.MarkAsLoaded "[QualityCenter\Resources] Resources\require.qfl"
End If