Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
298b2b3f
Commit
298b2b3f
authored
Nov 24, 2015
by
Philipp Stephani
Committed by
Eli Zaretskii
Nov 24, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/mod-test/mod-test.c (Fmod_test_sum): Verify there are 2 args.
parent
146f361a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
modules/mod-test/mod-test.c
modules/mod-test/mod-test.c
+2
-0
No files found.
modules/mod-test/mod-test.c
View file @
298b2b3f
...
...
@@ -42,6 +42,8 @@ sum (intmax_t a, intmax_t b)
static
emacs_value
Fmod_test_sum
(
emacs_env
*
env
,
ptrdiff_t
nargs
,
emacs_value
args
[],
void
*
data
)
{
assert
(
nargs
==
2
);
intmax_t
a
=
env
->
extract_integer
(
env
,
args
[
0
]);
intmax_t
b
=
env
->
extract_integer
(
env
,
args
[
1
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment