Commit Graph

7 Commits

Author SHA1 Message Date
Krzysztof Kowalczyk
b5970901a0 fix: correct isStatic check for Math.add binding in C embedding docs
The example code in the embedding documentation for calling C from Wren
incorrectly used `!isStatic` when checking for the static `add(_,_)` method
on the `Math` class. This caused the foreign method binding to respond to
non-static calls instead of static ones. Changed the condition to `isStatic`
so that `mathAdd` is correctly bound only when the method is invoked as a
static call.
2018-03-21 00:13:28 +00:00
Bob Nystrom
7ea381d001 docs: clarify embedding API docs with precise wording and cross-references 2017-10-19 14:02:18 +00:00
Bob Nystrom
4018d42c39 docs: remove placeholder application-lifecycle page and complete first draft of embedding docs
- Delete the empty "Application Lifecycle" page (was just a TODO placeholder)
- Expand "Storing C Data" from stub to full documentation covering foreign classes, initialization, access, and finalization
- Add note that VM is not re-entrant; warn against calling wrenCall/wrenInterpret from foreign methods
- Fix broken cross-reference links (configuring-the-vm.html, wren.hpp include)
- Clarify slot API usage: remove confusing sentence about implicit return of receiver
- Fix grammar: "each VM them differently" → "each VM differently", "is only be called" → "is only called"
- Improve phrasing throughout for clarity and consistency
2017-10-17 15:26:06 +00:00
Nathan Hourt
811b1afc89 fix: correct typo "askes" to "asks" in calling-c-from-wren documentation 2017-03-31 01:20:02 +00:00
Bob Nystrom
63f46adf06 docs: revise embedding docs with foreign methods and tighten existing pages 2017-02-12 18:14:37 +00:00
Bob Nystrom
25b1afcd2b docs: expand calling-c-from-wren with foreign method/class details and fix typo in slots-and-handles 2017-01-12 15:10:19 +00:00
Bob Nystrom
2bb999127a docs: restructure embedding API docs into multi-page section with slots, lifecycle, and C interop guides 2016-05-16 15:09:14 +00:00