Questions tagged [inline]
Use this tag for questions specifically about the effects of the inline keyword, together with the appropriate language tag.
inline
3,805
questions
0
votes
1
answer
35
views
Write a new Delphi type that lets a method have inline code as a parameter?
Is it possible to have this in Delphi?
DoThis(ShowMessage('SomeMsg ..'); Caption := 'SomeCaption'; Inc(I));
Is it possible to create a new type that handles inline code like this?
For example, we ...
0
votes
0
answers
11
views
GCC -fLTO and the warning "inline function 'Foo()' used but never defined."
Given:
file1.hxx:
inline void Func();
file1.cxx:
void Func() { beep(); }
main.cxx
#include "file1.hxx"
main()
{
Func();
}
GCC quite understandably emits the warning "warning: ...
1
vote
0
answers
97
views
Deterministic (programmatic) guidline for function inlining when targetting modern x86 processors?
(IMO) Cons when not inlined:
call is unconditional branch (jump) with stack manipulation, and the x86 instruction table specifies it needs 4 uops/inst. and has reciprocal throughput of 2 for Zen4 ...
2
votes
1
answer
48
views
How to accept inline inputs in a noninteractive powershell script
I'm trying to put together a powershell script that we can use for some custom scripts to a commercial IT monitoring solution (StableNet by Infosim.de). The product has a neat feature on passing on ...
3
votes
0
answers
87
views
Wrap doubles without overhead in Csharp
I'm trying to create a structure that's essentially just a regular double but has a physical unit attached via generics.
My attempts perform terribly, even without generics. Could somebody give me ...
0
votes
0
answers
18
views
Svg fold in vs code [duplicate]
Classes can be fold as Flowed. Many classes can be accommodated in a small space. Is it possible to keep SVG like this? Or are there any extensions for vs code?
<svg xmlns="http://www.w3.org/...
0
votes
0
answers
26
views
inline function is slower
HiALL
I am using MDK arm compiler (No optimization) on stm32f030 chip.
I noticed that function declared with __forceinline takes
more time to execute that without that. I checked that with ...
0
votes
1
answer
77
views
`extern inline` vs `static inline` shared functions. What is the correct form?
There are two possible ways to define shared inline functions:
1st form, extern inline
main.c:
#include <stdio.h>
#include "main.h"
#include "file1.h"
extern inline int f(...
1
vote
1
answer
83
views
How to use `inline` function across multiple C files without the "declared but never defined" warnings?
I want to use inline function across multiple C files. Maybe the MWE would be:
main.c:
#include <stdio.h>
#include "main.h"
#include "file1.h"
// Define the inline function ...
0
votes
0
answers
21
views
Chrome content security policy blocks use of inline scripts and stylesheets
I am trying to test in whatsapp web a well known tool called zapixweb which allows for exporting chat data from within whatsapp web in the browser. Once copying the javascript code into the browser ...
2
votes
0
answers
30
views
GCC+MPICH Link-time optimization generates "inlining failed" warnings for compiler-generated functions
TL;DR: How do I fix* inline failures by LTO on compiler-generated functions?
(* by "fix" I mean "eliminate warnings in a manner consistent with best practice." I want to remove the ...
0
votes
0
answers
11
views
mongoose aggregation for show inline array foreign key s field such as name
my basic table schema :
in this document for each federation has some fields
const basic_federationSchema = new mongoose.Schema({
name: { type: String, require: true },
field: [{
name: ...
3
votes
1
answer
71
views
Encapsulation of inline reified method in kotlin
I have written the util class to be used with Flow<> in kotlin. The goal of the class is to simplify error handling and make possible to instantly finish the flow by calling breakFlow() method. ...
0
votes
1
answer
51
views
Change color of inline svg inside <img> tag [duplicate]
I was wondering if it's possible to change the color of a SVG image/icon/logo in an inline html <img> tag, using style="..."
Here's part of my code, it's a button and I want the logo (...
0
votes
0
answers
33
views
Rcpp won't export an inline void function
The simple code file test2.cpp is
double tau;
// [[Rcpp::export]]
inline void set_tau(double t) {
tau = t;
}
// [[Rcpp::export]]
inline double get_tau() {
return tau;
}
It won't compile with ...