Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
Printer:-GetIncludes - get library inclusion statements
Calling Sequence
Printer:-GetIncludes()
Parameters
Printer
-
Printer module
Description
When called after the printing of intermediate code, the GetIncludes command returns a string containing the commands necessary for including all libraries or packages which have been declared necessary during the printing phase with AddLibrary calls.
The LibraryInclusion language attribute controls the formatting of the results returned by GetIncludes.
The GetIncludes command is frequently called by PrintTarget in order to preface the generated code with any necessary include directives.
Examples
LanguageDefinition[Define]("GetIncludesExample", extend = "C", AddFunction( "show_libraries", [anything]::anything, proc() Printer:-Print( "printf(\"Library inclusion statements are: ", Printer:-GetIncludes(), "\")" ) end proc ) ):
a = sin(x); b = printf("Library inclusion statements are: #include <math.h> ");
See Also
AddLibrary, Language Attributes, Printer
Download Help Document
Copyright © MathResources Inc. All Rights Reserved.
www.mathresources.com